-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose-dev.yml
78 lines (72 loc) · 1.65 KB
/
docker-compose-dev.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
version: '3'
services:
db:
container_name: csh_db
image: postgres:10
ports:
- 5444:5432
env_file:
- .env
webapp:
container_name: webapp
build: ./webapp
depends_on:
- db
volumes:
- '.:/csh'
ports:
- 5000:5000
env_file:
- webapp.env
- .env
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
matcher:
container_name: matcher
build: ./matcher
volumes:
- '.:/csh' # HOST:CONTAINER
ports:
- 5001:5000 # HOST:CONTAINER
env_file:
- matcher.env
- .env
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
matcher_worker:
image: csh_matcher
container_name: matcher_worker
command: python manage.py
volumes:
- '.:/csh'
depends_on:
- redis
- matcher
env_file:
- matcher.env
- .env
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
webapp_worker:
image: csh_webapp
container_name: webapp_worker
command: python manage.py runworker
volumes:
- '.:/csh'
depends_on:
- redis
- webapp
env_file:
- webapp.env
- .env
environment:
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
redis:
image: redis
container_name: csh_queue
ports:
- 6379:6379