37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
[supervisord]
|
|
nodaemon=true
|
|
user=django
|
|
logfile=/dev/null
|
|
logfile_maxbytes=0
|
|
pidfile=/tmp/supervisord.pid
|
|
|
|
# ------------------------------------------------------------
|
|
# پروسه وبسرور جنگو (Gunicorn)
|
|
# ------------------------------------------------------------
|
|
[program:django-web]
|
|
command=gunicorn config.wsgi:application --bind 0.0.0.0:8000 --workers 3 --timeout 120
|
|
directory=/app
|
|
autostart=true
|
|
autorestart=true
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0
|
|
|
|
# ------------------------------------------------------------
|
|
# پروسه پردازش تسکهای سلری (Celery Worker)
|
|
# ------------------------------------------------------------
|
|
[program:celery-worker]
|
|
process_name=%(program_name)s_%(process_num)02d
|
|
command=celery -A config worker -l INFO
|
|
directory=/app
|
|
autostart=true
|
|
autorestart=true
|
|
# مدیریت خروج امن تسکها در زمان ریاستارت یا دیپلوی در Coolify
|
|
stopasgroup=true
|
|
killasgroup=true
|
|
stopwaitsecs=600
|
|
stdout_logfile=/dev/stdout
|
|
stdout_logfile_maxbytes=0
|
|
stderr_logfile=/dev/stderr
|
|
stderr_logfile_maxbytes=0 |