diff --git a/supervisord.conf b/supervisord.conf new file mode 100644 index 0000000..a76b2e3 --- /dev/null +++ b/supervisord.conf @@ -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