-
Notifications
You must be signed in to change notification settings - Fork 12
/
supervisord.conf
48 lines (44 loc) · 1.02 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
[supervisord]
directory = /tmp
logfile_maxbytes = 1MB
nodaemon=true
user=root
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
pidfile=/tmp/supervisord.pid
[program:openresty]
command=/usr/bin/openresty -g "daemon off;"
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
user=root
daemon=off
[program:starlette]
directory=/app
command=/bin/ash -c 'if [ "%(ENV_DEVELOPMENT)s" == "true" ] || [ "%(ENV_DEVELOPMENT)s" == true ]; then /start-reload.sh; else /start.sh; fi'
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
user=root
[program:rq]
directory=/rq
command=python3 /rq/worker.py
autostart=true
autorestart=true
redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
user=root
[program:redis]
directory=/redis
command=/usr/bin/redis-server --protected-mode no
autostart=%(ENV_REDIS_INTERNAL)s
autorestart=%(ENV_REDIS_INTERNAL)s
redirect_stderr=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
user=root