supervisord.conf.j2 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # This file contains the base config for supervisord, as part of ../Dockerfile-workers.
  2. # configure_workers_and_start.py uses and amends to this file depending on the workers
  3. # that have been selected.
  4. [supervisord]
  5. nodaemon=true
  6. user=root
  7. [program:nginx]
  8. command=/usr/sbin/nginx -g "daemon off;"
  9. priority=500
  10. stdout_logfile=/dev/stdout
  11. stdout_logfile_maxbytes=0
  12. stderr_logfile=/dev/stderr
  13. stderr_logfile_maxbytes=0
  14. username=www-data
  15. autorestart=true
  16. [program:redis]
  17. command=/usr/bin/redis-server /etc/redis/redis.conf --daemonize no
  18. priority=1
  19. stdout_logfile=/dev/stdout
  20. stdout_logfile_maxbytes=0
  21. stderr_logfile=/dev/stderr
  22. stderr_logfile_maxbytes=0
  23. username=redis
  24. autorestart=true
  25. [program:synapse_main]
  26. command=/usr/local/bin/python -m synapse.app.homeserver --config-path="{{ main_config_path }}" --config-path=/conf/workers/shared.yaml
  27. priority=10
  28. # Log startup failures to supervisord's stdout/err
  29. # Regular synapse logs will still go in the configured data directory
  30. stdout_logfile=/dev/stdout
  31. stdout_logfile_maxbytes=0
  32. stderr_logfile=/dev/stderr
  33. stderr_logfile_maxbytes=0
  34. autorestart=unexpected
  35. exitcodes=0
  36. # Additional process blocks
  37. {{ worker_config }}