Skip to content

Commit

Permalink
Use self fd again, container should be run as www-data, running as ro…
Browse files Browse the repository at this point in the history
…ot will cause permission issues on the stdout
  • Loading branch information
wslaghekke committed Mar 19, 2024
1 parent cd38f2d commit 1235908
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 10 deletions.
4 changes: 2 additions & 2 deletions nginx/docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ http {
# Logging Settings
##

access_log /dev/stdout;
error_log stderr;
access_log /proc/self/fd/1;
error_log /proc/self/fd/2;

##
# Gzip Settings
Expand Down
2 changes: 1 addition & 1 deletion nginx/docker/php-fpm-app.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
emergency_restart_threshold = 10
emergency_restart_interval = 1m
process_control_timeout = 10s
error_log = /dev/stderr
error_log = /proc/self/fd/2
12 changes: 5 additions & 7 deletions nginx/docker/supervisord.conf
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
[supervisord]
nodaemon=true
user=www-data
logfile=/dev/stdout
logfile=/proc/self/fd/1
logfile_maxbytes=0
pidfile=/tmp/supervisord.pid

[program:php-fpm]
command=php-fpm -F
stdout_logfile=/dev/stdout
stdout_logfile=/proc/self/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
redirect_stderr=true
autorestart=true
startretries=0
user=www-data

[program:nginx]
command=nginx -g 'daemon off;'
stdout_logfile=/dev/stdout
stdout_logfile=/proc/self/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
redirect_stderr=true
autorestart=true
startretries=0
user=www-data

0 comments on commit 1235908

Please sign in to comment.