# This file contains the base config for supervisord, as part of ../Dockerfile-workers. # configure_workers_and_start.py uses and amends to this file depending on the workers # that have been selected. [supervisord] nodaemon=true user=root [include] files = /etc/supervisor/conf.d/*.conf [program:nginx] command=/usr/local/bin/prefix-log /usr/sbin/nginx -g "daemon off;" priority=500 username=www-data autorestart=true [program:redis] {% if using_unix_sockets %} command=/usr/local/bin/prefix-log /usr/bin/redis-server --unixsocket /tmp/redis.sock {% else %} command=/usr/local/bin/prefix-log /usr/bin/redis-server {% endif %} priority=1 username=redis autorestart=true # Redis can be disabled if the image is being used without workers autostart={{ enable_redis }}