version: '3' services: db: image: "postgres:9.6.5" volumes: - "./data/db:/var/lib/postgresql/data" env_file: - config.env redis: image: 'redis:3.0-alpine' command: redis-server volumes: - './data/redis:/data' app: build: . command: ./utils/entrypoint.sh env_file: - config.env ports: - 5123:5123 volumes: - "./data/uploads:/var/cdb/uploads" depends_on: - db - redis worker: build: . command: celery -A app.tasks.celery worker env_file: - config.env environment: - FLASK_CONFIG=../config.cfg volumes: - "./data/uploads:/var/cdb/uploads" depends_on: - 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