Files
backend/supervisord.conf
2025-09-22 18:43:29 -06:00

90 lines
2.1 KiB
Plaintext

[supervisord]
nodaemon=true
user=root
[program:collectstatic]
command=python manage.py collectstatic --noinput
directory=/app
autostart=true
autorestart=false
startretries=1
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
priority=1
[program:django]
command=gunicorn --bind 0.0.0.0:8000 --workers 12 --timeout 120 config.wsgi:application
directory=/app
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
[program:celery-worker-1]
command=celery -A config worker --loglevel=info --concurrency=6 --hostname=worker1@%%h
directory=/app
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
killasgroup=true
stopasgroup=true
[program:celery-worker-2]
command=celery -A config worker --loglevel=info --concurrency=6 --hostname=worker2@%%h
directory=/app
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
killasgroup=true
stopasgroup=true
[program:celery-worker-3]
command=celery -A config worker --loglevel=info --concurrency=6 --hostname=worker3@%%h
directory=/app
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
killasgroup=true
stopasgroup=true
[program:celery-worker-4]
command=celery -A config worker --loglevel=info --concurrency=6 --hostname=worker4@%%h
directory=/app
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
killasgroup=true
stopasgroup=true
[program:celery-beat]
command=celery -A config beat --loglevel=info
directory=/app
autostart=true
autorestart=true
stdout_logfile=/dev/stdout
stderr_logfile=/dev/stderr
stdout_logfile_maxbytes=0
stderr_logfile_maxbytes=0
killasgroup=true
stopasgroup=true
[group:celery]
programs=celery-worker-1,celery-worker-2,celery-worker-3,celery-worker-4,celery-beat