Add supervisord.conf
This commit is contained in:
parent
0a873c3e54
commit
986fb63cc3
1 changed files with 22 additions and 0 deletions
22
supervisord.conf
Normal file
22
supervisord.conf
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
[supervisord]
|
||||||
|
nodaemon=true
|
||||||
|
logfile=/app/logs/supervisord.log
|
||||||
|
pidfile=/var/run/supervisord.pid
|
||||||
|
|
||||||
|
[program:fastapi]
|
||||||
|
command=python -m uvicorn backend.main:app --host 0.0.0.0 --port 8000
|
||||||
|
directory=/app
|
||||||
|
redirect_stderr=true
|
||||||
|
stdout_logfile=/app/logs/fastapi.log
|
||||||
|
autostart=true
|
||||||
|
autorestart=true
|
||||||
|
startsecs=10
|
||||||
|
|
||||||
|
[unix_http_server]
|
||||||
|
file=/var/run/supervisor.sock
|
||||||
|
|
||||||
|
[supervisorctl]
|
||||||
|
serverurl=unix:///var/run/supervisor.sock
|
||||||
|
|
||||||
|
[rpcinterface:supervisor]
|
||||||
|
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
|
||||||
Reference in a new issue