improve dockerfile for speed
This commit is contained in:
1 parent
f89ce457d5
commit
521ee0224b
2 files changed
+34
-26
No files matched your search
+10
-3
@@ -1,13 +1,21 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
# به جای مسیرهای سیستم، از /tmp استفاده کنید
|
||||
logfile=/dev/null
|
||||
pidfile=/tmp/supervisord.pid
|
||||
|
||||
[unix_http_server]
|
||||
file=/tmp/supervisor.sock
|
||||
chmod=0700
|
||||
|
||||
[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
|
||||
@@ -18,7 +26,6 @@ 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
|
||||
|
||||
Reference in new issue
Block a user