fix dockerfile and supervirod
This commit is contained in:
1 parent
06025a4d32
commit
f7c6e32f96
2 files changed
+6
No files matched your search
@@ -0,0 +1,41 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
logfile=/dev/null
|
||||
pidfile=/tmp/supervisord.pid
|
||||
# 🛠️ اصلاح ۱: تعریف دایرکتوری مجاز برای لاگهای داخلی سوپروایزر
|
||||
childlogdir=/tmp
|
||||
|
||||
[unix_http_server]
|
||||
file=/tmp/supervisor.sock
|
||||
# 🛠️ اصلاح ۲: افزایش سطح دسترسی سوکت برای کاربر مالک فرآیند
|
||||
chmod=0770
|
||||
|
||||
[rpcinterface:supervisor]
|
||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||
|
||||
[supervisorctl]
|
||||
serverurl=unix:///tmp/supervisor.sock
|
||||
|
||||
[program:django-web]
|
||||
command=gunicorn config.wsgi:application --bind 0.0.0.0:8000 --workers 3
|
||||
directory=/app
|
||||
# 🛠️ اصلاح ۳: مشخص کردن صریح کاربر اجراکننده
|
||||
user=django
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
|
||||
[program:celery-worker]
|
||||
command=celery -A config worker -l INFO
|
||||
directory=/app
|
||||
# 🛠️ اصلاح ۳: مشخص کردن صریح کاربر اجراکننده
|
||||
user=django
|
||||
autostart=true
|
||||
autorestart=true
|
||||
stdout_logfile=/dev/stdout
|
||||
stdout_logfile_maxbytes=0
|
||||
stderr_logfile=/dev/stderr
|
||||
stderr_logfile_maxbytes=0
|
||||
Reference in new issue
Block a user