Supervisord services not outputting to docker-compose console
First, don't use supervisord and docker, pick one or the other, if you are using docker, use docker compose and a split out each service using docker to control the process, but if you're going to do this anyway... I started supervisor with supervisord -n
and updated my nginx config to send logs to /dev/stderr and /dev/stdout and everything is working as expected. the startup commands for nginx are sent to /dev/stdout by supervisord and the nginx logs are send to the place configured by nginx, only error_log is configurable for nginx startup parameters, see specific links below.
root@6534bf4b8d3c:/# supervisord -n
/usr/lib/python3/dist-packages/supervisor/options.py:470: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security.
self.warnings.warn(
2021-02-23 23:54:30,673 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2021-02-23 23:54:30,674 INFO Included extra file "/etc/supervisor/conf.d/guerrilla.conf" during parsing
2021-02-23 23:54:30,676 INFO RPC interface 'supervisor' initialized
2021-02-23 23:54:30,676 CRIT Server 'unix_http_server' running without any HTTP authentication checking
2021-02-23 23:54:30,676 INFO supervisord started with pid 5239
2021-02-23 23:54:31,678 INFO spawned: 'nginx' with pid 5241
2021-02-23 23:54:32,686 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
127.0.0.1 - - [23/Feb/2021:23:54:35 -0500] "GET / HTTP/1.1" 200 612 "-" "curl/7.68.0"
sshd logging
nginx logging
php-fpm logging
memcached logging (verbose)