From 2195a7b87a560ddbdba6d7a4b4c567a79341a15c Mon Sep 17 00:00:00 2001 From: javad Date: Tue, 16 Jun 2026 12:01:02 +0330 Subject: [PATCH] fix dockerfile --- supervisor.conf | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/supervisor.conf b/supervisor.conf index 6b16571..e4b9c0f 100644 --- a/supervisor.conf +++ b/supervisor.conf @@ -2,10 +2,13 @@ nodaemon=true logfile=/dev/null pidfile=/tmp/supervisord.pid +# 🛠️ اصلاح ۱: تعریف دایرکتوری مجاز برای لاگ‌های داخلی سوپروایزر +childlogdir=/tmp [unix_http_server] file=/tmp/supervisor.sock -chmod=0700 +# 🛠️ اصلاح ۲: افزایش سطح دسترسی سوکت برای کاربر مالک فرآیند +chmod=0770 [rpcinterface:supervisor] supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface @@ -16,6 +19,8 @@ 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 @@ -26,6 +31,8 @@ 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