A basic Docker Compose template for orchestrating a Flask application & a Celery queue with Redis
git clone https://github.com/mattkohl/docker-flask-celery-redis
docker-compose up -d --build
This will expose the Flask application's endpoints on port 5001
as well as a Flower server for monitoring workers on port 5555
To add more workers:
docker-compose up -d --scale worker=5 --no-recreate
To shut down:
docker-compose down
To change the endpoints, update the code in api/app.py
Task changes should happen in queue/tasks.py
adapted from https://github.com/itsrifat/flask-celery-docker-scale