forked from thorrak/fermentrack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circus-docker.ini
78 lines (65 loc) · 1.85 KB
/
circus-docker.ini
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
74
75
76
77
78
[circus]
check_delay = 5
endpoint = tcp://127.0.0.1:7555
pubsub_endpoint = tcp://127.0.0.1:7556
stats_endpoint = tcp://127.0.0.1:7557
loglevel = ERROR
logoutput = log/circusd.log
[watcher:Fermentrack]
cmd = chaussette --fd $(circus.sockets.Fermentrack) fermentrack_django.wsgi:application
use_sockets = True
numprocesses = 2
copy_env = True
working_dir = /app
# Log output, rotate every 2MB, keep 3 logfiles.
stderr_stream.class = FileStream
stderr_stream.filename = log/fermentrack-stderr.log
#stderr_stream.time_format = %Y-%m-%d %H:%M:%S
stderr_stream.max_bytes = 2097152
stderr_stream.backup_count = 3
#stdout_stream.class = FileStream
#stdout_stream.filename = log/fermentrack-stdout.log
#stdout_stream.time_format = %Y-%m-%d %H:%M:%S
#stdout_stream.max_bytes = 2097152
#stdout_stream.backup_count = 3
[socket:Fermentrack]
host = 0.0.0.0
port = 8023
[env:Fermentrack]
PYTHONPATH = /app
[watcher:processmgr]
cmd = python
args = -m utils.processmgr
working_dir = /app
copy_env = True
use_sockets = False
numprocesses = 1
# Log output, rotate every 2MB, keep 3 logfiles.
stderr_stream.class = FileStream
stderr_stream.filename = log/fermentrack-processmgr.log
#stderr_stream.time_format = %Y-%m-%d %H:%M:%S
stderr_stream.max_bytes = 2097152
stderr_stream.backup_count = 3
[env:processmgr]
PYTHONPATH = /app
[watcher:huey]
cmd = python
args = manage.py run_huey
working_dir = /app
copy_env = True
#copy_path = True
use_sockets = False
numprocesses = 1
# Log output, rotate every 2MB, keep 3 logfiles.
stderr_stream.class = FileStream
stderr_stream.filename = log/huey-stderr.log
stderr_stream.refresh_time = 0.3
stderr_stream.max_bytes = 2097152
stderr_stream.backup_count = 3
stdout_stream.class = FileStream
stdout_stream.filename = log/huey-stdout.log
stdout_stream.refresh_time = 0.3
stdout_stream.max_bytes = 2097152
stdout_stream.backup_count = 3
[env:huey]
PYTHONPATH = /app