Bankbot / hf /supervisord.conf
mohsin-devs's picture
feat: Document Analyzer, Persistent AI Memory, Multi-language (EN/HI/MR), Dark/Light Theme
ee111cd
Raw
History Blame Contribute Delete
1.32 kB
[supervisord]
nodaemon=true
logfile=/var/log/supervisor/supervisord.log
logfile_maxbytes=10MB
logfile_backups=2
loglevel=info
pidfile=/tmp/supervisord.pid
[program:fastapi]
command=python -m uvicorn app.main:app --host 127.0.0.1 --port 8000 --workers 1 --proxy-headers --forwarded-allow-ips *
directory=/app/backend
autostart=true
autorestart=true
startretries=5
startsecs=5
stdout_logfile=/var/log/supervisor/fastapi.log
stderr_logfile=/var/log/supervisor/fastapi.log
stdout_logfile_maxbytes=5MB
; start.sh exports all secrets before exec'ing supervisord, so the child
; process inherits the full parent environment. We only need to set the two
; vars that are NOT already in the shell environment.
environment=PYTHONUNBUFFERED="1",PYTHONPATH="/app/backend"
[program:nextjs]
command=node server.js
directory=/app/frontend
autostart=true
autorestart=true
startretries=5
startsecs=5
stdout_logfile=/var/log/supervisor/nextjs.log
stderr_logfile=/var/log/supervisor/nextjs.log
stdout_logfile_maxbytes=5MB
environment=NODE_ENV="production",PORT="3000",HOSTNAME="127.0.0.1",NEXT_TELEMETRY_DISABLED="1"
[program:nginx]
command=nginx -g "daemon off;"
autostart=true
autorestart=true
startretries=3
startsecs=3
stdout_logfile=/var/log/supervisor/nginx.log
stderr_logfile=/var/log/supervisor/nginx.log
stdout_logfile_maxbytes=5MB