-
Notifications
You must be signed in to change notification settings - Fork 1
/
supervisord.conf
73 lines (62 loc) · 2.01 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
61
62
63
64
65
66
67
68
69
70
71
72
73
;This file is part of bigCGI.
;
;bigCGI is free software: you can redistribute it and/or modify
;it under the terms of the GNU General Public License as published by
;the Free Software Foundation, either version 3 of the License, or
;(at your option) any later version.
;bigCGI is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;GNU General Public License for more details.
;You should have received a copy of the GNU General Public License
;along with bigCGI. If not, see <http://www.gnu.org/licenses/>.
[unix_http_server]
file=/tmp/supervisor.sock
;[inet_http_server]
;port = 127.0.0.1:9001
;username = user
;password = 123
[supervisord]
logfile = logs/supervisord.log
logfile_maxbytes=50KB
logfile_backups=3
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock ; use a unix:// URL for a unix socket
logfile = logs/supervisord.log
logfile_maxbytes=50KB
logfile_backups=3
[program:celeryworker]
command=celery -A tasks.tasks worker --loglevel=info -Q bigcgi_instance_%(ENV_BIGCGI_INSTANCE_ID)s
environment=PATH="venv/bin:%(ENV_PATH)s"
stdout_logfile=./logs/celeryworker_stdout.log
stderr_logfile=./logs/celeryworker_stderr.log
logfile_maxbytes=50KB
logfile_backups=3
autostart=true
autorestart=true
startsecs=10
stopwaitsecs=600
user=bigcgi
[program:celerybeat]
command=celery -A tasks.tasks beat --loglevel=info
environment=PATH="venv/bin:%(ENV_PATH)s"
stdout_logfile=./logs/celerybeat_stdout.log
stderr_logfile=./logs/celerybeat_stderr.log
logfile_maxbytes=50KB
logfile_backups=3
autostart=true
autorestart=true
startsecs=10
user=bigcgi
[program:gunicorn]
command=gunicorn -b 0.0.0.0:8888 -w 4 app:app
environment=PATH="venv/bin:%(ENV_PATH)s"
stdout_logfile=./logs/gunicorn_stdout.log
stderr_logfile=./logs/gunicorn_stderr.log
logfile_maxbytes=50KB
logfile_backups=3
autorestart=true
startsecs=10
user=bigcgi