nginx-php-fpm icon indicating copy to clipboard operation
nginx-php-fpm copied to clipboard

supervisord logs are written to filesystem

Open dmartin opened this issue 2 years ago • 0 comments

Due to these lines in supervisord.conf https://github.com/wyveo/nginx-php-fpm/blob/master/supervisord.conf#L6-L9

[supervisord]
logfile=/tmp/supervisord.log ; (main log file;default $CWD/supervisord.log)
logfile_maxbytes=50MB        ; (max main logfile bytes b4 rotation;default 50MB)
logfile_backups=10           ; (num of main logfile rotation backups;default 10)

supervisord logs are written to the container's writable layer. This can cause problems if there is a filesystem quota applied to the container. Typically Docker containers write all logs directly to stdout/stderr to be captured by external log drivers, so this behavior is unexpected.

dmartin avatar Feb 17 '23 17:02 dmartin