Updated entrypoint.sh to launch celery

This commit is contained in:
SergeantPanda 2025-02-22 13:49:28 -06:00
parent f44ddc31ba
commit 0fac5d8e41
2 changed files with 5 additions and 0 deletions

View file

@ -45,6 +45,8 @@ services:
db:
image: postgres:14
container_name: dispatcharr_db
ports:
- "5436:5432"
environment:
- POSTGRES_DB=dispatcharr
- POSTGRES_USER=dispatch

View file

@ -83,5 +83,8 @@ service redis-server start
python manage.py collectstatic --noinput || true
python manage.py migrate --noinput || true
# Start Celery
celery -A dispatcharr worker --loglevel=info &
# Start Gunicorn
gunicorn --workers=4 --worker-class=gevent --timeout=300 --bind 0.0.0.0:9191 dispatcharr.wsgi:application