Docker + docker compose support
This commit is contained in:
parent
3e7ad917e2
commit
fe88481431
10 changed files with 141 additions and 29 deletions
28
misc/docker-supervisord.conf
Normal file
28
misc/docker-supervisord.conf
Normal file
|
@ -0,0 +1,28 @@
|
|||
[supervisord]
|
||||
nodaemon=true
|
||||
logfile=/dev/null
|
||||
logfile_maxbytes=0
|
||||
pidfile=data/supervisord.pid
|
||||
|
||||
[fcgi-program:uvicorn]
|
||||
socket=tcp://0.0.0.0:8000
|
||||
command=uvicorn app.main:app --no-server-header --fd 0
|
||||
numprocs=2
|
||||
process_name=uvicorn-%(process_num)d
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/dev/fd/1
|
||||
stdout_logfile_maxbytes=0
|
||||
|
||||
[program:incoming_worker]
|
||||
command=inv process-incoming-activities
|
||||
numproc=1
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/dev/fd/1
|
||||
stdout_logfile_maxbytes=0
|
||||
|
||||
[program:outgoing_worker]
|
||||
command=inv process-outgoing-activities
|
||||
numproc=1
|
||||
redirect_stderr=true
|
||||
stdout_logfile=/dev/fd/1
|
||||
stdout_logfile_maxbytes=0
|
Loading…
Add table
Add a link
Reference in a new issue