Spaces:
Paused
Paused
File size: 1,006 Bytes
01b7f8a |
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 |
[supervisord]
nodaemon=true
logfile=/var/log/supervisor/supervisord.log
pidfile=/run/supervisord.pid
[program:realtime_server]
directory=/app
command=python realtime_server.py --port=9001 --host=0.0.0.0
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/realtime.out.log
stderr_logfile=/var/log/supervisor/realtime.err.log
priority=10
stopasgroup=true
killasgroup=true
[program:streamlit]
directory=/app
; Streamlit on an internal port; Nginx exposes public 7860/$PORT
command=streamlit run app.py --server.port=9000 --server.address=0.0.0.0 --server.enableXsrfProtection=false --server.enableCORS=false
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/streamlit.out.log
stderr_logfile=/var/log/supervisor/streamlit.err.log
priority=20
stopasgroup=true
killasgroup=true
[program:nginx]
command=/usr/sbin/nginx -g "daemon off;"
autostart=true
autorestart=true
stdout_logfile=/var/log/supervisor/nginx.out.log
stderr_logfile=/var/log/supervisor/nginx.err.log
priority=30
|