-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-customers-only.yml
78 lines (70 loc) · 1.49 KB
/
docker-compose-customers-only.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
version: '2.1'
services:
#redis:
# container_name: redis
# image: redis
# ports:
# - "6379:6379"
# healthcheck:
# test: exit 0
# restart: always
rabbitmq:
image: rabbitmq
build: queue
ports:
- "15672:15672"
- "5672:5672"
restart: always
querydb_customers:
build: customers/query_db/
ports:
- "27019:27017"
restart: always
commanddb_customers:
build: customers/command_db/
ports:
- "5439:5432"
healthcheck:
test: exit 0
restart: always
customers_service:
build:
context:
customers
environment:
- RABBIT_PASSWORD=guest
- RABBIT_USER=guest
- RABBIT_HOST=rabbitmq
- RABBIT_PORT=5672
- DB_PASSWORD=password
- DB_USER=postgres
- DB_HOST=commanddb_customers
- DB_NAME=customers
- PYTHONPATH=.
- MONGO_HOST=querydb_customers
- MONGO_PORT=27017
- MONGO_DATABASE=customers
depends_on:
- querydb_customers
- commanddb_customers
- rabbitmq
links:
- querydb_customers
- commanddb_customers
- rabbitmq
restart: always
orchestrator:
build:
context: orchestrator
environment:
#APP_SETTINGS: "orchestrator.config.ProductionConfig"
RABBIT_PASSWORD: "guest"
RABBIT_USER: "guest"
RABBIT_HOST: "rabbitmq"
RABBIT_PORT: "5672"
PYTHONPATH: "."
ports:
- "5000:5000"
depends_on:
- rabbitmq
- customers_service