forked from arachnys/cabot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
53 lines (48 loc) · 989 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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
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
command: celery beat -A cabot --loglevel=DEBUG
environment:
- SKIP_INIT=1
- WAIT_FOR_MIGRATIONS=1
links:
- redis
- db
redis:
image: redis:alpine
db:
image: postgres:alpine
volumes:
- datavolume:/var/lib/postgresql/data
volumes:
datavolume: