mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 07:52:56 +01:00
67f51c84f8
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
47 lines
1.4 KiB
Django/Jinja
47 lines
1.4 KiB
Django/Jinja
# 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
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
username=www-data
|
|
autorestart=true
|
|
|
|
[program:redis]
|
|
command=/usr/local/bin/prefix-log /usr/bin/redis-server /etc/redis/redis.conf --daemonize no
|
|
priority=1
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
username=redis
|
|
autorestart=true
|
|
|
|
# Redis can be disabled if the image is being used without workers
|
|
autostart={{ enable_redis }}
|
|
|
|
[program:synapse_main]
|
|
command=/usr/local/bin/prefix-log /usr/local/bin/python -m synapse.app.homeserver --config-path="{{ main_config_path }}" --config-path=/conf/workers/shared.yaml
|
|
priority=10
|
|
# Log startup failures to supervisord's stdout/err
|
|
# Regular synapse logs will still go in the configured data directory
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
autorestart=unexpected
|
|
exitcodes=0
|
|
|
|
# Additional process blocks
|
|
{{ worker_config }}
|