-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsupervisord.conf
More file actions
70 lines (63 loc) · 1.73 KB
/
supervisord.conf
File metadata and controls
70 lines (63 loc) · 1.73 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
67
68
69
70
[supervisord]
nodaemon=true
logfile=/dev/null
logfile_maxbytes=0
pidfile=/app/run/supervisord.pid
[unix_http_server]
file=/app/run/supervisor.sock
chmod=0700
[supervisorctl]
serverurl=unix:///app/run/supervisor.sock
[rpcinterface:supervisor]
supervisor.rpcinterface_factory=supervisor.rpcinterface:make_main_rpcinterface
[program:nginx]
; Master runs as root so it can open /dev/stdout and /dev/stderr (owned by
; PID 1 root) for access/error logs. Worker processes drop to galactilog via
; the `user` directive in /etc/nginx/nginx.conf.
command=nginx -g "daemon off;"
priority=10
autostart=true
autorestart=true
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:uvicorn]
command=uvicorn app.main:app --host 127.0.0.1 --port 8000 --proxy-headers
directory=/app
priority=20
autostart=true
autorestart=true
user=galactilog
environment=HOME="/tmp",USER="galactilog"
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
[program:celery]
command=celery -A app.worker.celery_app worker --loglevel=info --concurrency=%(ENV_GALACTILOG_CELERY_CONCURRENCY)s
directory=/app
priority=30
autostart=true
autorestart=true
user=galactilog
environment=HOME="/tmp",USER="galactilog"
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0
stopwaitsecs=30
killasgroup=true
stopasgroup=true
[program:celery-beat]
command=celery -A app.worker.celery_app beat --loglevel=info --schedule /app/run/celerybeat-schedule
directory=/app
priority=25
autostart=true
autorestart=true
user=galactilog
environment=HOME="/tmp",USER="galactilog"
stdout_logfile=/dev/fd/1
stdout_logfile_maxbytes=0
stderr_logfile=/dev/fd/2
stderr_logfile_maxbytes=0