-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
221 lines (203 loc) · 4.63 KB
/
docker-compose.yaml
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
version: '3'
services:
postgres:
container_name: postgres-db
image: postgres:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
prometheus:
image: prom/prometheus:latest
container_name: prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
ports:
- "29090:9090"
grafana:
image: grafana/grafana:latest
container_name: grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
ports:
- "3000:3000"
depends_on:
- prometheus
volumes:
- grafana_data:/var/lib/grafana
redis:
image: 'bitnami/redis:latest'
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
- REDIS_PORT_NUMBER=6379
zookeeper:
image: confluentinc/cp-zookeeper:latest
environment:
ZOOKEEPER_CLIENT_PORT: 2181
hzct:
image: hazelcast/hazelcast:5.3.1
environment:
JAVA_OPTS: -Dhazelcast.config=/project/hazelcast.yaml
ports:
- "5701:5701"
volumes:
- ".:/project"
kafka:
image: confluentinc/cp-kafka:latest
depends_on:
- zookeeper
ports:
- "9092:9092"
- "9093:9093"
environment:
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:9093
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
cf-service-1:
container_name: cf-service-1
image: ere/cf-service
environment:
SERVER_PORT: 1000
MANAGEMENT_PORT: 1001
SPRING_PROFILES_ACTIVE: stg
ports:
- "1000:1000"
- "1001:1001"
depends_on:
- prometheus
- postgres
cf-service-2:
container_name: cf-service-2
image: ere/cf-service
environment:
SERVER_PORT: 1002
MANAGEMENT_PORT: 1003
SPRING_PROFILES_ACTIVE: stg
ports:
- "1002:1002"
- "1003:1003"
depends_on:
- prometheus
- postgres
cf-db-service-1:
container_name: cf-db-service-1
image: ere/cf-db-service
environment:
SERVER_PORT: 1004
MANAGEMENT_PORT: 1005
SPRING_PROFILES_ACTIVE: stg
ports:
- "1004:1004"
- "1005:1005"
depends_on:
- prometheus
- postgres
cf-db-service-2:
container_name: cf-db-service-2
image: ere/cf-db-service
environment:
SERVER_PORT: 1006
MANAGEMENT_PORT: 1007
SPRING_PROFILES_ACTIVE: stg
ports:
- "1006:1006"
- "1007:1007"
depends_on:
- prometheus
- postgres
redis-service-1:
container_name: redis-service-1
image: ere/redis-service
environment:
SERVER_PORT: 1008
MANAGEMENT_PORT: 1009
SPRING_PROFILES_ACTIVE: stg
ports:
- "1008:1008"
- "1009:1009"
depends_on:
- prometheus
- postgres
- redis
redis-service-2:
container_name: redis-service-2
image: ere/redis-service
environment:
SERVER_PORT: 1010
MANAGEMENT_PORT: 1011
SPRING_PROFILES_ACTIVE: stg
ports:
- "1010:1010"
- "1011:1011"
depends_on:
- prometheus
- postgres
- redis
cf-kafka-service-1:
container_name: cf-kafka-service-1
image: ere/cf-kafka-service
environment:
SERVER_PORT: 1012
MANAGEMENT_PORT: 1013
SPRING_PROFILES_ACTIVE: stg
KAFKA_CG_NAME: cf-kafka-service-1
ports:
- "1012:1012"
- "1013:1013"
depends_on:
- prometheus
- postgres
- kafka
cf-kafka-service-2:
container_name: cf-kafka-service-2
image: ere/cf-kafka-service
environment:
SERVER_PORT: 1014
MANAGEMENT_PORT: 1015
SPRING_PROFILES_ACTIVE: stg
KAFKA_CG_NAME: cf-kafka-service-2
ports:
- "1014:1014"
- "1015:1015"
depends_on:
- prometheus
- postgres
- kafka
hzct-service-1:
container_name: hzct-service-1
image: ere/hzct-service
environment:
SERVER_PORT: 1016
MANAGEMENT_PORT: 1017
SPRING_PROFILES_ACTIVE: stg
ports:
- "1016:1016"
- "1017:1017"
depends_on:
- prometheus
- postgres
- hzct
hzct-service-2:
container_name: hzct-service-2
image: ere/hzct-service
environment:
SERVER_PORT: 1018
MANAGEMENT_PORT: 1019
SPRING_PROFILES_ACTIVE: stg
ports:
- "1018:1018"
- "1019:1019"
depends_on:
- prometheus
- postgres
- hzct
volumes:
grafana_data:
postgres_data: