Add celery beat and celery flower to docker compose

This commit is contained in:
rubenwardy 2019-11-18 22:39:01 +00:00
parent ff2a74367f
commit b977a42738

@ -39,3 +39,23 @@ services:
- "./data/uploads:/home/cdb/app/public/uploads" - "./data/uploads:/home/cdb/app/public/uploads"
depends_on: depends_on:
- redis - redis
beat:
build: .
command: celery -A app.tasks.celery beat
env_file:
- config.env
environment:
- FLASK_CONFIG=../config.cfg
depends_on:
- redis
flower:
image: mher/flower
command: ["flower", "--broker=redis://redis:6379/0", "--port=5124"]
env_file:
- config.env
ports:
- 5124:5124
depends_on:
- redis