-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
85 lines (75 loc) · 1.79 KB
/
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
version: '3'
services:
proxy:
command: [nginx-debug, '-g', 'daemon off;']
image: nginx
ports:
- "80:80"
volumes:
- "./env/development/nginx.conf:/etc/nginx/conf.d/default.conf"
depends_on:
- app
- frontend
frontend:
build:
context: .
dockerfile: ./docker/Dockerfile.frontend
volumes:
- './frontend:/usr/src/app'
- '/usr/src/app/node_modules'
env_file:
- env/development/.env
# - env/development/.env.secret
app:
command: wait-for-it db:5432 --timeout=30 -- flask run --host=0.0.0.0
build:
context: .
dockerfile: ./docker/Dockerfile.backend
volumes:
- './backend:/app/backend'
env_file:
- env/development/.env
# - env/development/.env.secret
depends_on:
- db
db:
image: postgres:10
volumes:
- 'db:/var/lib/postgresql/data'
broker:
image: rabbitmq:3
hostname: broker
tasks:
command: wait-for-it broker:5672 --timeout=30 -- dramatiq tasks.jobs --watch .
build:
context: .
dockerfile: ./docker/Dockerfile.backend
volumes:
- './backend:/app/backend'
env_file:
- env/development/.env
# - env/development/.env.secret
depends_on:
- broker
scheduler:
command: wait-for-it broker:5672 --timeout=30 -- python -m tasks.scheduler
build:
context: .
dockerfile: ./docker/Dockerfile.backend
volumes:
- './backend:/app/backend'
env_file:
- env/development/.env
# - env/development/.env.secret
depends_on:
- broker
acceptance:
command: bash -c 'cd /app && behave'
build:
context: .
dockerfile: ./docker/Dockerfile.backend
volumes:
- './backend:/app/backend'
- './features:/app/features'
volumes:
db: {}