cabot/docker-compose.yml
Frank Hamand 8dd27fb82c Fix all workers running beats
This caused inaccurate timings and some duplicate jobs running. There
should only ever be a single beat service, whereas we were using a dev
feature to run a beat service on all 16 workers
2017-02-09 12:19:40 +00:00

44 lines
737 B
YAML

version: '2'
services:
web:
env_file:
- conf/development.env
build: .
image: cabot:web
command: python manage.py runserver 0.0.0.0:5001
ports:
- "5001:5001"
volumes:
- .:/code
links:
- redis
- db
worker:
env_file:
- conf/development.env
image: cabot:web
command: python manage.py celery worker -A cabot --loglevel=DEBUG --concurrency=16 -Ofair
volumes:
- .:/code
links:
- redis
- db
beat:
env_file:
- conf/development.env
image: cabot:web
command: python manage.py celery beat -A cabot --loglevel=DEBUG
volumes:
- .:/code
links:
- redis
- db
redis:
image: redis
db:
image: postgres