first commit

This commit is contained in:
javad committed 2026-06-15 12:35:27 +03:30
1 parent 3e4574dcdd
commit 069f5113b2
1 file changed
+29 -4
+29 -4
View File
@@ -1,12 +1,37 @@
[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
numprocs=1
startsecs=10
stopwaitsecs=600
redirect_stderr=true
stdout_logfile=/tmp/worker.log
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0