supervisord.conf.j2 853 B

123456789101112131415161718192021222324252627282930313233
  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. command=/usr/local/bin/prefix-log /usr/local/bin/redis-server
  20. priority=1
  21. stdout_logfile=/dev/stdout
  22. stdout_logfile_maxbytes=0
  23. stderr_logfile=/dev/stderr
  24. stderr_logfile_maxbytes=0
  25. username=redis
  26. autorestart=true
  27. # Redis can be disabled if the image is being used without workers
  28. autostart={{ enable_redis }}