2021-04-14 15:54:49 +03:00
|
|
|
# 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
|
|
|
|
|
2022-04-14 17:36:49 +03:00
|
|
|
[include]
|
|
|
|
files = /etc/supervisor/conf.d/*.conf
|
|
|
|
|
2021-04-14 15:54:49 +03:00
|
|
|
[program:nginx]
|
2022-05-10 00:41:06 +03:00
|
|
|
command=/usr/local/bin/prefix-log /usr/sbin/nginx -g "daemon off;"
|
2021-04-14 15:54:49 +03:00
|
|
|
priority=500
|
|
|
|
stdout_logfile=/dev/stdout
|
|
|
|
stdout_logfile_maxbytes=0
|
|
|
|
stderr_logfile=/dev/stderr
|
|
|
|
stderr_logfile_maxbytes=0
|
|
|
|
username=www-data
|
|
|
|
autorestart=true
|
|
|
|
|
|
|
|
[program:redis]
|
2023-07-11 21:08:06 +03:00
|
|
|
{% if using_unix_sockets %}
|
|
|
|
command=/usr/local/bin/prefix-log /usr/local/bin/redis-server --unixsocket /tmp/redis.sock
|
|
|
|
{% else %}
|
2022-08-04 14:59:27 +03:00
|
|
|
command=/usr/local/bin/prefix-log /usr/local/bin/redis-server
|
2023-07-11 21:08:06 +03:00
|
|
|
{% endif %}
|
2021-04-14 15:54:49 +03:00
|
|
|
priority=1
|
|
|
|
stdout_logfile=/dev/stdout
|
|
|
|
stdout_logfile_maxbytes=0
|
|
|
|
stderr_logfile=/dev/stderr
|
|
|
|
stderr_logfile_maxbytes=0
|
|
|
|
username=redis
|
|
|
|
autorestart=true
|
|
|
|
|
2022-06-08 12:57:05 +03:00
|
|
|
# Redis can be disabled if the image is being used without workers
|
|
|
|
autostart={{ enable_redis }}
|
|
|
|
|