cabot/docker-compose.yml

54 lines
989 B
YAML
Raw Normal View History

version: '2'
services:
web:
extends:
file: docker-compose-base.yml
service: base
env_file:
- conf/development.env
command: python manage.py runserver 0.0.0.0:5001
ports:
- "5001:5001"
links:
- redis
- db
worker:
extends:
file: docker-compose-base.yml
service: base
env_file:
- conf/development.env
2017-03-08 15:45:07 +00:00
command: celery worker -A cabot --loglevel=DEBUG --concurrency=16 -Ofair
environment:
- SKIP_INIT=1
- WAIT_FOR_MIGRATIONS=1
links:
- redis
- db
beat:
extends:
file: docker-compose-base.yml
service: base
env_file:
- conf/development.env
2017-03-08 15:45:07 +00:00
command: celery beat -A cabot --loglevel=DEBUG
environment:
- SKIP_INIT=1
- WAIT_FOR_MIGRATIONS=1
links:
- redis
- db
redis:
2017-08-21 17:03:52 +00:00
image: redis:alpine
db:
2017-08-21 17:03:52 +00:00
image: postgres:alpine
volumes:
- datavolume:/var/lib/postgresql/data
volumes:
datavolume: