forked from cgwire/kitsu-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
supervisord.conf
60 lines (51 loc) · 1.57 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
59
60
[supervisord]
nodaemon = True
umask = 022
[program:redis]
# let supervisord handle logs, don't daemonize
command=/usr/bin/redis-server /etc/redis/redis.conf --logfile '' --daemonize no
user=root
autostart=true
autorestart=true
stdout_logfile=/var/log/redis/redis-server.log
redirect_stderr=true
priority=100
[program:postgresql]
command=/usr/lib/postgresql/10/bin/postmaster --config-file=/etc/postgresql/10/main/postgresql.conf
user=postgres
autostart=true
autorestart=true
# forcefully disconnect all clients
stopsignal=SIGINT
stdout_logfile=/var/log/postgresql/postgresql-10-main.log
redirect_stderr=true
priority=100
[program:nginx]
command = nginx -g "daemon off;"
autostart = true
autorestart = true
stopwaitsecs = 5
stdout_logfile=/var/log/nginx/access.log
stdout_logfile=/var/log/nginx/error.log
[program:gunicorn]
environment=PREVIEW_FOLDER=/opt/zou/previews,DB_USERNAME=root,DB_PASSWORD=''
command=/opt/zou/env/bin/gunicorn -c /etc/zou/gunicorn.conf -b 127.0.0.1:5000 --chdir /opt/zou/zou zou.app:app
directory=/opt/zou
autostart=true
autorestart=true
redirect_stderr=true
[program:gunicorn-events]
command=/opt/zou/env/bin/gunicorn -c /etc/zou/gunicorn-events.conf -b 127.0.0.1:5001 zou.event_stream:app
directory=/opt/zou
autostart=true
autorestart=true
redirect_stderr=true
[group:zou-processes]
programs=gunicorn,gunicorn-events
priority=5
[unix_http_server]
file=/tmp/supervisor.sock
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface