Making sure output from PHP-FPM is redirected to the Docker logs

This commit is contained in:
Tim de Pater 2017-09-09 09:26:05 +02:00
parent 257f26e6da
commit ad15933ed3
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,7 @@
[global]
; Log to stderr
error_log = /dev/stderr
[www]
; Enable status page
pm.status_path = /fpm-status
@ -29,3 +33,6 @@ pm.max_requests = 500
; Make sure the FPM workers can reach the environment variables for configuration
clear_env = no
; Catch output from PHP
catch_workers_output = yes

View File

@ -15,7 +15,7 @@ http {
'$request_time $upstream_response_time $pipe $upstream_cache_status';
access_log /dev/stdout main_timed;
error_log /dev/stderr info;
error_log /dev/stderr notice;
keepalive_timeout 65;