-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsupervisord.conf
37 lines (32 loc) · 1020 Bytes
/
supervisord.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[supervisord]
nodaemon=true
loglevel=error
[program:streamlit]
command = bash -c "PYTHONPATH=./ ENVIRONMENT=$ENVIRONMENT streamlit run src/streamlit_app/app.py --browser.gatherUsageStats false --server.maxUploadSize=100 &>> log.log"
autostart = true
autorestart = false
startretries = 0
stopasgroup = true
killasgroup = true
stdout_logfile = /dev/stdout
stderr_logfile = /dev/stderr
stdout_logfile_maxbytes = 0
stderr_logfile_maxbytes = 0
[program:nginx]
command = bash -c "nginx -g 'daemon off;'"
autostart = true
autorestart = false
startretries = 0
stopasgroup = true
killasgroup = true
stdout_logfile = /dev/stdout
stderr_logfile = /dev/stderr
stdout_logfile_maxbytes = 0
stderr_logfile_maxbytes = 0
[eventlistener:processes]
command = bash -c "printf 'READY\n' && while read line; do kill -SIGQUIT $PPID; done < /dev/stdin"
events = PROCESS_STATE_STOPPED,PROCESS_STATE_EXITED,PROCESS_STATE_FATAL
stdout_logfile = /dev/stdout
stderr_logfile = /dev/stderr
stdout_logfile_maxbytes = 0
stderr_logfile_maxbytes = 0