-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsupervisord.conf
More file actions
48 lines (43 loc) · 1.1 KB
/
supervisord.conf
File metadata and controls
48 lines (43 loc) · 1.1 KB
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
38
39
40
41
42
43
44
45
46
47
48
[supervisorctl]
serverurl=unix:///var/run/supervisor.sock
[supervisord]
nodaemon=true
logfile=/var/log/supervisor/supervisord.log
logfile_maxbytes=5MB
logfile_backups=10
loglevel=info
pidfile=/var/run/supervisord.pid
[program:dashboard_app]
command=gunicorn -w 2 -b 0.0.0.0:5000 dashboard_app:app
directory=/app
autostart=true
autorestart=true
stderr_logfile=/var/log/supervisor/dashboard_app.err.log
stdout_logfile=/var/log/supervisor/dashboard_app.out.log
startsecs=5
stopwaitsecs=10
priority=10
[program:webhook_app]
command=gunicorn -w 2 -b 0.0.0.0:5005 webhook_receiver:app
directory=/app
autostart=true
autorestart=true
stderr_logfile=/var/log/supervisor/webhook_app.err.log
stdout_logfile=/var/log/supervisor/webhook_app.out.log
startsecs=5
stopwaitsecs=10
priority=20
[program:email_reader]
command=python email_reader.py
directory=/app
autostart=true
autorestart=true
stderr_logfile=/var/log/supervisor/email_reader.err.log
stdout_logfile=/var/log/supervisor/email_reader.out.log
startsecs=10
stopwaitsecs=15
exitcodes=0,2
priority=30
[group:tradex]
programs=dashboard_app,webhook_app,email_reader
priority=999