-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
87 lines (80 loc) · 2.12 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
86
87
version: '3.8'
services:
catalog_service_1:
container_name: catalog_service_1
image: hoangho/catalog_service
build: ./CatalogService
environment:
PROCESS_ID: 123
ALL_IDS: "123,111,114"
ALL_HOSTNAMES: "catalog_service_1,catalog_service_2,catalog_service_3"
CATALOG_PORT: 5002
ports:
- "5001:5002"
env_file: config_env
catalog_service_2:
container_name: catalog_service_2
image: hoangho/catalog_service
build: ./CatalogService
environment:
PROCESS_ID: 111
ALL_IDS: "123,111,114"
ALL_HOSTNAMES: "catalog_service_1,catalog_service_2,catalog_service_3"
CATALOG_PORT: 5002
ports:
- "5002:5002"
env_file: config_env
catalog_service_3:
container_name: catalog_service_3
image: hoangho/catalog_service
build: ./CatalogService
environment:
PROCESS_ID: 114
ALL_IDS: "123,111,114"
ALL_HOSTNAMES: "catalog_service_1,catalog_service_2,catalog_service_3"
CATALOG_PORT: 5002
ports:
- "5003:5002"
env_file: config_env
order_service_1:
container_name: order_service_1
image: hoangho/order_service
build:
context: ./OrderService
dockerfile: deployments/Dockerfile
environment:
CATALOG_HOST: "catalog_service_1"
CATALOG_PORT: 5002
ports:
- "5007:5007"
order_service_2:
container_name: order_service_2
image: hoangho/order_service
build:
context: ./OrderService
dockerfile: deployments/Dockerfile
environment:
CATALOG_HOST: "catalog_service_2"
CATALOG_PORT: 5002
ports:
- "5006:5007"
order_service_3:
container_name: order_service_3
image: hoangho/order_service
build:
context: ./OrderService
dockerfile: deployments/Dockerfile
environment:
CATALOG_HOST: "catalog_service_3"
CATALOG_PORT: 5002
ports:
- "5005:5007"
front_end_service:
container_name: front_end_service
image: hoangho/front_end_service
build:
context: ./FrontendService
dockerfile: deployments/Dockerfile
ports:
- "5004:5004"
env_file: config_env