-
Notifications
You must be signed in to change notification settings - Fork 0
/
supervisord.conf
58 lines (54 loc) · 1.28 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
[supervisord]
logfile = /tmp/supervisord.log
logfile_maxbytes = 50MB
logfile_backups=10
loglevel = info
pidfile = /tmp/supervisord.pid
nodaemon = true
minfds = 1024
minprocs = 200
identifier = supervisor
directory = /tmp
nocleanup = true
childlogdir = /tmp
strip_ansi = false
user = root
[program:nginx]
autostart = true
autorestart = true
command = nginx -g "daemon off;"
user = root
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:frontend]
autostart = true
autorestart = true
directory=/usr/local/app/frontend
environment = NEXT_TELEMETRY_DISABLED=1,HOSTNAME=0.0.0.0
command = node server
user = root
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:api]
autostart = true
autorestart = true
directory=/usr/local/app/api
command = node index
stopwaitsecs = 90
user = root
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
# Kill the process if an app fails to allow kubernetes to take over
[eventlistener:processes]
command=/usr/local/app/stop_supervisor.sh
events=PROCESS_STATE_STOPPED, PROCESS_STATE_FATAL
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0