-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
145 lines (136 loc) · 3.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
version: "3"
services:
eureka-service:
build:
context: .
args:
- service_name=${EUREKA_SERVICE_NAME}
image: us-eureka-service
ports:
- "8088:8088"
environment:
- SERVICE_NAME_ENV=${EUREKA_SERVICE_NAME}
container_name: us-eureka-service
config-service:
depends_on:
- eureka-service
build:
context: .
args:
- service_name=${CONFIG_SERVICE_NAME}
image: us-config-service
ports:
- "8089:8089"
environment:
- SERVICE_NAME_ENV=${CONFIG_SERVICE_NAME}
container_name: us-config-service
zuul-service:
depends_on:
- eureka-service
- config-service
build:
context: .
args:
- service_name=${ZUUL_SERVICE_NAME}
image: us-zuul-service
ports:
- "8090:8090"
environment:
- SERVICE_NAME_ENV=${ZUUL_SERVICE_NAME}
container_name: us-zuul-service
hazelcast-service-1:
build:
context: .
args:
- service_name=${HAZELCAST_SERVICE_NAME}
image: us-hazelcast-service
ports:
- "8082:8080"
- "5701:5701"
environment:
- SERVICE_NAME_ENV=${HAZELCAST_SERVICE_NAME}
container_name: us-hazelcast-service-1
hazelcast-service-2:
build:
context: .
args:
- service_name=${HAZELCAST_SERVICE_NAME}
image: us-hazelcast-service
ports:
- "8083:8080"
- "5702:5701"
environment:
- SERVICE_NAME_ENV=${HAZELCAST_SERVICE_NAME}
- XMS=4G
- XMX=4G
container_name: us-hazelcast-service-2
hazelcast-service-3:
depends_on:
- eureka-service
- config-service
build:
context: .
args:
- service_name=${HAZELCAST_SERVICE_NAME}
image: us-hazelcast-service
ports:
- "8084:8080"
- "5703:5701"
environment:
- SERVICE_NAME_ENV=${HAZELCAST_SERVICE_NAME}
container_name: us-hazelcast-service-3
id-service:
depends_on:
- eureka-service
- config-service
- hazelcast-service-1
- hazelcast-service-2
- hazelcast-service-3
build:
context: .
args:
- service_name=${ID_SERVICE_NAME}
image: us-id-service
ports:
- "8081:8081"
environment:
- SERVICE_NAME_ENV=${ID_SERVICE_NAME}
- XMS=2G
- XMX=2G
container_name: us-id-service
api-service-1:
depends_on:
- eureka-service
- config-service
- hazelcast-service-1
- hazelcast-service-2
- hazelcast-service-3
- id-service
build:
context: .
args:
- service_name=${API_SERVICE_NAME}
image: us-api-service
ports:
- "8080:8080"
environment:
- SERVICE_NAME_ENV=${API_SERVICE_NAME}
container_name: us-api-service-1
api-service-2:
depends_on:
- eureka-service
- config-service
- hazelcast-service-1
- hazelcast-service-2
- hazelcast-service-3
- id-service
build:
context: .
args:
- service_name=${API_SERVICE_NAME}
image: us-api-service
ports:
- "8079:8080"
environment:
- SERVICE_NAME_ENV=${API_SERVICE_NAME}
container_name: us-api-service-2