mirror of
https://github.com/N0rthernL1ghts/wordpress.git
synced 2024-11-23 10:51:10 +01:00
Remove /etc/cont-init.d ties to nlss/php-nginx:7.4 image
This commit is contained in:
parent
a1563b89f4
commit
68da285e90
|
@ -17,9 +17,6 @@ COPY --from=nlss/attr ["/usr/local/bin/attr", "/usr/local/bin/"]
|
|||
# Add crond service
|
||||
COPY --from=nlss/base-alpine:3.14 ["/etc/services.d/cron/", "/etc/services.d/cron/"]
|
||||
|
||||
# Add container init tasks
|
||||
COPY --from=nlss/php-nginx:7.4 ["/etc/cont-init.d/", "/etc/cont-init.d/"]
|
||||
|
||||
# Add php-fpm configuration
|
||||
COPY --from=nlss/php-nginx:7.4 ["/usr/local/etc/php-fpm.d/", "/usr/local/etc/php-fpm.d/"]
|
||||
|
||||
|
|
12
rootfs/etc/cont-init.d/20-nginx-log-stream
Executable file
12
rootfs/etc/cont-init.d/20-nginx-log-stream
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
set -e
|
||||
|
||||
echo "Redirecting nginx logs to output streams..."
|
||||
|
||||
# General logs
|
||||
ln -sf /dev/stdout /var/log/nginx/access.log
|
||||
ln -sf /dev/stderr /var/log/nginx/error.log
|
||||
|
||||
# App specific logs
|
||||
ln -sf /dev/stdout /var/log/nginx/app-access.log
|
||||
ln -sf /dev/stderr /var/log/nginx/app-error.log
|
10
rootfs/etc/cont-init.d/20-parse-template
Executable file
10
rootfs/etc/cont-init.d/20-parse-template
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
set -e
|
||||
|
||||
echo "Parsing virtual host template..."
|
||||
/usr/local/bin/gomplate -V \
|
||||
-o /etc/nginx/sites-available/app.conf \
|
||||
-f /etc/templates/tmpl-app-nginx.conf
|
||||
|
||||
echo "Enabling virtual host..."
|
||||
ln -sf /etc/nginx/sites-available/app.conf /etc/nginx/sites-enabled/app.conf
|
4
rootfs/etc/cont-init.d/99-webuser-permissions
Executable file
4
rootfs/etc/cont-init.d/99-webuser-permissions
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/with-contenv sh
|
||||
set -e
|
||||
|
||||
attr /var/www true www-data:www-data 0770 2771/etc/cont-init.d
|
Loading…
Reference in New Issue
Block a user