How to enable access log for php-fpm in docker container?

one text

Solution:

The way to do this is to send the error and the access logs to the following address:

/proc/self/fd/2

So replace the "file" locations like so:

access.log = /proc/self/fd/2
error_log = /proc/self/fd/2

Then you should be able to inspect the fpm-logs with docker logs [container-id]

Source