Skip to content

Commit 21f2479

Browse files
committed
log to stdout
1 parent bb6b74a commit 21f2479

File tree

5 files changed

+3
-6
lines changed

5 files changed

+3
-6
lines changed

docker-compose.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ nginx:
44
- php
55
volumes:
66
- project:/www
7-
- docker/nginx/log:/var/log/nginx:rw
87
- docker/nginx/conf.d:/etc/nginx/conf.d
98
ports:
109
- "8090:80"
@@ -13,5 +12,4 @@ php:
1312
volumes:
1413
- project:/www:rw
1514
- docker/php/php-fpm.conf:/usr/local/etc/php-fpm.conf
16-
- docker/php/log:/var/log/php-fpm:rw
1715
working_dir: /www/

docker/nginx/log/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

docker/php/build/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ RUN docker-php-ext-install mbstring zip
66

77
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && composer global require --prefer-dist "fxp/composer-asset-plugin:~1.0"
88

9+
RUN mkdir /var/log/php-fpm && ln -sf /dev/stdout /var/log/php-fpm/access.log && ln -sf /dev/stderr /var/log/php-fpm/error.log
10+
911
CMD ["php-fpm"]

docker/php/log/.gitignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

docker/php/php-fpm.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ daemonize = no
1010

1111
; if we send this to /proc/self/fd/1, it never appears
1212
access.log = /var/log/php-fpm/access.log
13+
catch_workers_output = yes
1314

1415
user = www-data
1516
group = www-data

0 commit comments

Comments
 (0)