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