-
Notifications
You must be signed in to change notification settings - Fork 105
/
supervisord.conf
43 lines (36 loc) · 1.21 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
[supervisord]
nodaemon=true
[program:mysql]
; Don't start the MySQL daemon if we're in production
command=/bin/bash -c 'if [ "$DJANGO_PRODUCTION" != "true" ]; then /usr/bin/mysqld_safe; fi'
autostart=true
exitcodes=0
startsecs=0
priority=1
autorestart=unexpected
[program:initialize]
command=/bin/bash /code/initialize.sh
exitcodes=0
startsecs=0
priority=10
[program:nginx]
command=/usr/sbin/nginx -g "daemon off;"
autostart=true
autorestart=true
priority=20
[program:gunicorn]
directory=/code/django_docker
command=/usr/local/bin/gunicorn -b 127.0.0.1:8000 -w 4 django_docker.wsgi --log-level=debug --log-file=/logs/gunicorn/gunicorn.log
autostart=true
autorestart=true
priority=20
[unix_http_server]
file=/var/run//supervisor.sock ; (the path to the socket file)
chmod=0700 ; sockef file mode (default 0700)
; the below section must remain in the config file for RPC
; (supervisorctl/web interface) to work, additional interfaces may be
; added by defining them in separate rpcinterface: sections
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///dev/shm/supervisor.sock ; use a unix:// URL for a unix socket