Repository navigation
Expand file tree
/
Copy pathdocker-worker.conf
More file actions
66 lines (59 loc) · 1.72 KB
/
Copy pathdocker-worker.conf
File metadata and controls
66 lines (59 loc) · 1.72 KB
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
; StreamVault container process supervisor
; Runs the WebUI, the recorder daemon and the background task worker in one
; container while keeping their lifecycles independent.
[supervisord]
nodaemon=true
user=root
logfile=/dev/null
logfile_maxbytes=0
pidfile=/tmp/supervisord.pid
childlogdir=/tmp
[unix_http_server]
file=/tmp/supervisor.sock
chmod=0700
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=unix:///tmp/supervisor.sock
[program:webui]
directory=/app
command=/usr/local/bin/gunicorn --workers 2 --worker-class gthread --threads 4 --bind 0.0.0.0:8080 --timeout 120 --access-logfile - --error-logfile - WEBUI.webui:app
environment=PYTHONPATH="/app",PYTHONUNBUFFERED="1"
autostart=true
autorestart=true
startsecs=5
stopasgroup=true
killasgroup=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:recorder]
directory=/app
command=/usr/local/bin/python3 recorder/Streamrecorder.py
environment=PYTHONPATH="/app",PYTHONUNBUFFERED="1"
autostart=true
autorestart=true
startsecs=5
; FFmpeg needs up to FFMPEG_FINALIZE_TIMEOUT (30 s) to finalize MP4s; the
; supervisor default of 10 s would SIGKILL it and truncate recordings.
stopwaitsecs=60
stopasgroup=true
killasgroup=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:worker]
directory=/app
command=/usr/local/bin/python3 recorder/worker.py
environment=PYTHONPATH="/app",PYTHONUNBUFFERED="1"
autostart=true
autorestart=true
startsecs=5
stopasgroup=true
killasgroup=true
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0