Maaroufabousaleh
Refactor Docker and entrypoint configurations; update NLTK data handling and logging paths
4b5719e
| [supervisord] | |
| nodaemon=true | |
| logfile=/dev/stdout | |
| logfile_maxbytes=0 | |
| pidfile=/tmp/supervisord.pid | |
| loglevel=info | |
| [program:gradio] | |
| command=/bin/sh -c 'PORT=${PORT:-7860} python /app/src/api/gradio_main.py' | |
| directory=/app | |
| autostart=true | |
| autorestart=true | |
| stdout_logfile=/dev/stdout | |
| stderr_logfile=/dev/stderr | |
| stdout_logfile_maxbytes=0 | |
| stderr_logfile_maxbytes=0 | |
| startsecs=5 | |
| startretries=3 | |
| stopwaitsecs=20 | |
| killasgroup=true | |
| stopasgroup=true | |
| environment=PYTHONPATH="/app:/app/src:/app/src/api:/app/src/data_cloud:/app/src/fetchers:/app/src/merge" | |
| ; [program:nginx] | |
| ; command=/usr/sbin/nginx -g 'daemon off;' | |
| ; autostart=true | |
| ; autorestart=true | |
| ; stdout_logfile=/dev/stdout | |
| ; stderr_logfile=/dev/stderr | |
| ; stdout_logfile_maxbytes=0 | |
| ; stderr_logfile_maxbytes=0 | |
| ; startsecs=5 | |
| ; startretries=3 | |
| ; stopwaitsecs=10 | |
| [program:scheduler] | |
| ; wait 180 s before first run, then your scheduler.py handles its own 30 min sleeps | |
| command=/bin/sh -c 'sleep 180 && python /app/deployment/scheduler.py' | |
| directory=/app | |
| autostart=true | |
| autorestart=true | |
| startsecs=0 | |
| stdout_logfile=/dev/stdout | |
| stderr_logfile=/dev/stderr | |
| stdout_logfile_maxbytes=0 | |
| stderr_logfile_maxbytes=0 | |
| startretries=3 | |
| stopwaitsecs=60 | |
| killasgroup=true | |
| stopasgroup=true | |
| [program:monitor] | |
| command=python /app/deployment/monitor.py | |
| directory=/app | |
| autostart=true | |
| autorestart=true | |
| startsecs=5 | |
| stdout_logfile=/dev/stdout | |
| stderr_logfile=/dev/stderr | |
| stdout_logfile_maxbytes=0 | |
| stderr_logfile_maxbytes=0 | |
| startretries=3 | |
| stopwaitsecs=10 | |
| killasgroup=true | |
| stopasgroup=true |