add supervisor support to Dockerfile and create supervisord configuration

This commit is contained in:
Kamil
2024-12-09 10:20:04 +00:00
parent e559b1cf11
commit d54100cbc4
2 changed files with 26 additions and 2 deletions

23
supervisord.conf Normal file
View File

@@ -0,0 +1,23 @@
[supervisord]
nodaemon=true
[program:jellyplist]
command=python run.py
autostart=true
autorestart=true
stderr_logfile=/var/log/jellyplist.supervisord.err.log
stdout_logfile=/var/log/jellyplist.supervisord.out.log
[program:celery_worker]
command=celery -A app.celery worker
autostart=true
autorestart=true
stderr_logfile=/var/log/jellyplist.celery_worker.supervisord.err.log
stdout_logfile=/var/log/jellyplist.celery_worker.supervisord.out.log
[program:celery_beat]
command=celery -A app.celery beat
autostart=true
autorestart=true
stderr_logfile=/var/log/jellyplist.celery_beat.supervisord.err.log
stdout_logfile=/var/log/jellyplist.celery_beat.supervisord.out.log