Docker container changes
This commit is contained in:
31
backend/config/supervisord.conf
Executable file
31
backend/config/supervisord.conf
Executable file
@@ -0,0 +1,31 @@
|
||||
[supervisord]
|
||||
logfile = /dev/null
|
||||
loglevel = info
|
||||
user = root
|
||||
pidfile = /var/run/supervisord.pid
|
||||
nodaemon = true
|
||||
|
||||
[program:nginx]
|
||||
command=/usr/sbin/nginx -g "daemon off;"
|
||||
autostart=true
|
||||
autorestart=true
|
||||
user = root
|
||||
startretries=5
|
||||
numprocs=1
|
||||
startsecs=0
|
||||
process_name=%(program_name)s_%(process_num)02d
|
||||
stderr_logfile=/var/log/supervisor/%(program_name)s_stderr.log
|
||||
stderr_logfile_maxbytes=10MB
|
||||
stdout_logfile=/var/log/supervisor/%(program_name)s_stdout.log
|
||||
stdout_logfile_maxbytes=10MB
|
||||
|
||||
[program:backend]
|
||||
directory=/execute
|
||||
user = nobody
|
||||
command=python3 app.py
|
||||
stdout_logfile="syslog"
|
||||
stderr_logfile="syslog"
|
||||
startsecs=10
|
||||
stopsignal=QUIT
|
||||
stopasgroup=true
|
||||
killasgroup=true
|
||||
Reference in New Issue
Block a user