supervisord.conf.j2 995 B

12345678910111213141516171819202122232425262728293031323334353637
  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. [include]
  8. files = /etc/supervisor/conf.d/*.conf
  9. [program:nginx]
  10. command=/usr/local/bin/prefix-log /usr/sbin/nginx -g "daemon off;"
  11. priority=500
  12. stdout_logfile=/dev/stdout
  13. stdout_logfile_maxbytes=0
  14. stderr_logfile=/dev/stderr
  15. stderr_logfile_maxbytes=0
  16. username=www-data
  17. autorestart=true
  18. [program:redis]
  19. {% if using_unix_sockets %}
  20. command=/usr/local/bin/prefix-log /usr/local/bin/redis-server --unixsocket /tmp/redis.sock
  21. {% else %}
  22. command=/usr/local/bin/prefix-log /usr/local/bin/redis-server
  23. {% endif %}
  24. priority=1
  25. stdout_logfile=/dev/stdout
  26. stdout_logfile_maxbytes=0
  27. stderr_logfile=/dev/stderr
  28. stderr_logfile_maxbytes=0
  29. username=redis
  30. autorestart=true
  31. # Redis can be disabled if the image is being used without workers
  32. autostart={{ enable_redis }}