-
Notifications
You must be signed in to change notification settings - Fork 31
/
docker-compose.yml
51 lines (45 loc) · 961 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
version: "2.1"
services:
web:
extends:
file: docker-compose-base.yml
service: base
command: sh -c "cabot migrate && gunicorn cabot.wsgi:application -b 0.0.0.0:5000 --workers=5"
ports:
- '127.0.0.1:5000:5000'
depends_on:
- postgres
- rabbitmq
restart: always
worker:
extends:
file: docker-compose-base.yml
service: base
command: celery worker -A cabot
depends_on:
- web
- postgres
- rabbitmq
restart: always
beat:
extends:
file: docker-compose-base.yml
service: base
command: celery beat -A cabot
depends_on:
- web
- postgres
- rabbitmq
restart: always
postgres:
image: postgres:9.6-alpine
volumes:
- data:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=postgres_password
restart: always
rabbitmq:
image: rabbitmq:3.6-alpine
restart: always
volumes:
data: