fix dockerfile

This commit is contained in:
javad committed 2026-06-16 12:01:02 +03:30
1 parent eed0ee9322
commit 2195a7b87a
1 file changed
+8 -1
+8 -1
View File
@@ -2,10 +2,13 @@
nodaemon=true nodaemon=true
logfile=/dev/null logfile=/dev/null
pidfile=/tmp/supervisord.pid pidfile=/tmp/supervisord.pid
# 🛠️ اصلاح ۱: تعریف دایرکتوری مجاز برای لاگ‌های داخلی سوپروایزر
childlogdir=/tmp
[unix_http_server] [unix_http_server]
file=/tmp/supervisor.sock file=/tmp/supervisor.sock
chmod=0700 # 🛠️ اصلاح ۲: افزایش سطح دسترسی سوکت برای کاربر مالک فرآیند
chmod=0770
[rpcinterface:supervisor] [rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
@@ -16,6 +19,8 @@ serverurl=unix:///tmp/supervisor.sock
[program:django-web] [program:django-web]
command=gunicorn config.wsgi:application --bind 0.0.0.0:8000 --workers 3 command=gunicorn config.wsgi:application --bind 0.0.0.0:8000 --workers 3
directory=/app directory=/app
# 🛠️ اصلاح ۳: مشخص کردن صریح کاربر اجراکننده
user=django
autostart=true autostart=true
autorestart=true autorestart=true
stdout_logfile=/dev/stdout stdout_logfile=/dev/stdout
@@ -26,6 +31,8 @@ stderr_logfile_maxbytes=0
[program:celery-worker] [program:celery-worker]
command=celery -A config worker -l INFO command=celery -A config worker -l INFO
directory=/app directory=/app
# 🛠️ اصلاح ۳: مشخص کردن صریح کاربر اجراکننده
user=django
autostart=true autostart=true
autorestart=true autorestart=true
stdout_logfile=/dev/stdout stdout_logfile=/dev/stdout