init
This commit is contained in:
52
web/supervisor.conf
Normal file
52
web/supervisor.conf
Normal file
@@ -0,0 +1,52 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
logfile=/logs/supervisord.log
|
||||
logfile_backups = 1
|
||||
pidfile=/logs/supervisord.pid
|
||||
|
||||
[inet_http_server]
|
||||
port = 0.0.0.0:9998
|
||||
username = root
|
||||
password = passw0rd
|
||||
|
||||
[rpcinterface:supervisor]
|
||||
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||
|
||||
[program:api]
|
||||
command =/root/.local/bin/gunicorn core.app:app --config /usr/src/app/gunicorn_conf.py
|
||||
environment=PYTHONPATH="/usr/src/app/",PYTHONIOENCODING="UTF-8"
|
||||
directory = /usr/src/app/
|
||||
autostart = true
|
||||
autorestart = true
|
||||
stdout_logfile = /logs/www.log
|
||||
stdout_logfile_maxbytes = 100000000
|
||||
stdout_logfile_backups = 3
|
||||
stopsignal = TERM
|
||||
numprocs=1
|
||||
redirect_stderr = true
|
||||
|
||||
[program:crond]
|
||||
command = /usr/local/bin/python -u /usr/src/app/tasks/crond/scheduler.py
|
||||
environment=PYTHONPATH="/usr/src/app",PYTHONIOENCODING="UTF-8"
|
||||
directory = /usr/src/app
|
||||
autostart = true
|
||||
autorestart = true
|
||||
stdout_logfile = /logs/crond.log
|
||||
stdout_logfile_maxbytes = 100000000
|
||||
stdout_logfile_backups = 3
|
||||
stopsignal = QUIT
|
||||
numprocs=1
|
||||
redirect_stderr = true
|
||||
|
||||
[program:celery_worker]
|
||||
command = /root/.local/bin/celery -A tasks.asynced.celery_worker.celery worker -c 4 --loglevel=INFO
|
||||
environment=PYTHONPATH="/usr/src/app",PYTHONIOENCODING="UTF-8"
|
||||
directory = /usr/src/app
|
||||
autostart = true
|
||||
autorestart = true
|
||||
stdout_logfile = /logs/celery.log
|
||||
stdout_logfile_maxbytes = 100000000
|
||||
stdout_logfile_backups = 3
|
||||
stopsignal = QUIT
|
||||
numprocs=1
|
||||
redirect_stderr = true
|
||||
Reference in New Issue
Block a user