-
Notifications
You must be signed in to change notification settings - Fork 54
/
docker_compose.yml
373 lines (366 loc) · 13.9 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
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
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
version: "3.2"
services:
proxy:
image: ${IDP_PROXY_IMAGE}
environment:
TZ: Asia/Kolkata
volumes:
- ${MOUNT_DIR}/proxy/idp.conf:/etc/nginx/conf.d/default.conf
- ${MOUNT_DIR}/proxy/nginx.conf:/etc/nginx/nginx.conf
- ${MOUNT_DIR}/proxy/addon_config/:/addon_config/
deploy:
mode: replicated
replicas: 1
zookeeper:
image: ${IDP_ZOOKEEPER_IMAGE}
environment:
TZ: Asia/Kolkata
deploy:
mode: replicated
replicas: 1
# Kafka Broker to be used for micro-service communication
kafka:
image: ${IDP_KAFKA_IMAGE}
hostname: ${KAFKA_HOSTNAME}
environment:
TZ: Asia/Kolkata
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: "INSIDE://:9092,OUTSIDE://${KAFKA_HOSTNAME_EXT}:${KAFKA_PORT_EXT}"
KAFKA_LISTENERS: INSIDE://:9092,OUTSIDE://:9094
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: INSIDE:PLAINTEXT,OUTSIDE:PLAINTEXT
KAFKA_INTER_BROKER_LISTENER_NAME: INSIDE
KAFKA_BROKER_ID: 1
deploy:
mode: replicated
replicas: 1
postgres:
image: ${IDP_POSTGRES_IMAGE}
environment:
POSTGRES_DB: ${POSTGRES_DEFAULT}
POSTGRES_USER: ${POSTGRES_USER}
SESSION_SECRET: ${POSTGRES_PASSWORD}
TZ: Asia/Kolkata
volumes:
- ${MOUNT_DIR}/postgresdata/:/var/lib/postgresql/data/
- ${MOUNT_DIR}/postgresinit/:/docker-entrypoint-initdb.d/
deploy:
mode: replicated
replicas: 1
keycloak:
image: ${IDP_KEYCLOAK_IMAGE}
environment:
TZ: Asia/Kolkata
KEYCLOAK_USER: ${KEYCLOAK_USER}
KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD}
POSTGRES_ADDR: ${POSTGRES_HOSTNAME}
POSTGRES_DATABASE: ${POSTGRES_DEFAULT}
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
PROXY_ADDRESS_FORWARDING: "true"
volumes:
- ${MOUNT_DIR}/keycloak/idptheme:/opt/jboss/keycloak/themes/idptheme
deploy:
mode: replicated
replicas: 1
grafana:
image: ${IDP_GRAFANA_IMAGE}
environment:
TZ: Asia/Kolkata
GRAFANA_PROTOCOL: "${PROTOCOL}"
ADMIN_PASSWORD: idp@123
KEYCLOAK_URL: "${PROTOCOL}://${KEYCLOAK_HOSTNAME}${KEYCLOAK_PORT}"
KEYCLOAK_REALM: master
GRAFANA_HOSTNAME: ${GRAFANA_HOSTNAME}
GRAFANA_PORT: ${GRAFANA_PORT}
volumes:
- ${MOUNT_DIR}/grafanadata/grafana.ini:/etc/grafana/grafana.ini
- ${MOUNT_DIR}/grafanadata/data/plugins:/var/lib/grafana/plugins
- ${MOUNT_DIR}/grafanadata/data/dashboards:/var/lib/grafana/dashboards
- ${MOUNT_DIR}/grafanadata/provisioning/:/etc/grafana/provisioning/
deploy:
mode: replicated
replicas: 1
jenkins:
image: ${IDP_JENKINS_IMAGE}
ports:
- ${JENKINS_SLAVE_PORT}:${JENKINS_SLAVE_PORT}
environment:
TZ: Asia/Kolkata
JENKINS_HOME: /var/jenkins_home/
volumes:
- ${MOUNT_DIR}/server.xml:/usr/local/tomcat/conf/server.xml
- ${MOUNT_DIR}/jenkinsdata:/var/jenkins_home/
- ${MOUNT_DIR}/dsldata:/DSL/
deploy:
mode: replicated
replicas: 1
config:
image: ${IDP_CONFIG_IMAGE}
environment:
TZ: Asia/Kolkata
CONFIG_USERNAME: ${CONFIG_USERNAME}
CONFIG_PASSWORD: ${CONFIG_PASSWORD}
SSL_ENABLED: ${SSL_ENABLED}
deploy:
mode: replicated
replicas: 1
eureka:
image: ${IDP_EUREKA_IMAGE}
environment:
TZ: Asia/Kolkata
SSL_ENABLED: ${SSL_ENABLED}
deploy:
mode: replicated
replicas: 1
oauth:
image: ${IDP_OAUTH_IMAGE}
environment:
TZ: Asia/Kolkata
PROFILE: ${PROFILE}
KAFKA_HOSTNAME: ${KAFKA_HOSTNAME}
KAFKA_PORT: ${KAFKA_PORT}
CONFIG_HOSTNAME: ${CONFIG_HOSTNAME}
CONFIG_PORT: ${CONFIG_PORT}
CONFIG_USERNAME: ${CONFIG_USERNAME}
CONFIG_PASSWORD: ${CONFIG_PASSWORD}
POSTGRES_HOSTNAME: ${POSTGRES_HOSTNAME}
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
KEYCLOAK_HOSTNAME: ${KEYCLOAK_HOSTNAME}
KEYCLOAK_PORT: ${KEYCLOAK_PORT}
KEYCLOAK_USER: ${KEYCLOAK_USER}
KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD}
AUTH_PROVIDER: ${AUTH_PROVIDER}
LDAP_URL: ${LDAP_URL}
SMTP_DOMAIN: ${SMTP_DOMAIN}
SSL_ENABLED: ${SSL_ENABLED}
deploy:
mode: replicated
replicas: 1
services:
image: ${IDP_SERVICES_IMAGE}
environment:
TZ: Asia/Kolkata
PROFILE: ${PROFILE}
ORCHESTRATOR_HOSTNAME: ${ORCHESTRATOR_HOSTNAME}
ORCHESTRATOR_PORT: ${ORCHESTRATOR_PORT}
GRAFANA_HOSTNAME: ${GRAFANA_HOSTNAME}
GRAFANA_PORT: ${GRAFANA_PORT}
ZOOKEEPER_HOSTNAME: ${ZOOKEEPER_HOSTNAME}
ZOOKEEPER_PORT: ${ZOOKEEPER_PORT}
KAFKA_HOSTNAME: ${KAFKA_HOSTNAME}
KAFKA_PORT: ${KAFKA_PORT}
CONFIG_HOSTNAME: ${CONFIG_HOSTNAME}
CONFIG_PORT: ${CONFIG_PORT}
CONFIG_USERNAME: ${CONFIG_USERNAME}
CONFIG_PASSWORD: ${CONFIG_PASSWORD}
EUREKA_HOSTNAME: ${EUREKA_HOSTNAME}
EUREKA_PORT: ${EUREKA_PORT}
SCHEDULER_HOSTNAME: ${SCHEDULER_HOSTNAME}
SCHEDULER_PORT: ${SCHEDULER_PORT}
POSTGRES_HOSTNAME: ${POSTGRES_HOSTNAME}
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_DEFAULT: ${POSTGRES_DEFAULT}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
KEYCLOAK_HOSTNAME: ${KEYCLOAK_HOSTNAME}
KEYCLOAK_PORT: ${KEYCLOAK_PORT}
KEYCLOAK_USER: ${KEYCLOAK_USER}
KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD}
JENKINS_HOSTNAME: ${JENKINS_HOSTNAME}
JENKINS_PORT: ${JENKINS_PORT}
JENKINS_USERNAME: ${JENKINS_USERNAME}
JENKINS_PASSWORD: ${JENKINS_PASSWORD}
OAUTH_HOSTNAME: ${OAUTH_HOSTNAME}
OAUTH_PORT: ${OAUTH_PORT}
DASHBOARD_HOSTNAME: ${DASHBOARD_HOSTNAME}
DASHBOARD_PORT: ${DASHBOARD_PORT}
IDPAPP_HOSTNAME: ${IDPAPP_HOSTNAME}
IDPAPP_PORT: ${IDPAPP_PORT}
SUBSCRIPTION_HOSTNAME: ${SUBSCRIPTION_HOSTNAME}
SUBSCRIPTION_PORT: ${SUBSCRIPTION_PORT}
SERVICES_HOSTNAME: ${SERVICES_HOSTNAME}
SERVICES_PORT: ${SERVICES_PORT}
SSL_ENABLED: ${SSL_ENABLED}
deploy:
mode: replicated
replicas: 1
dashboard:
image: ${IDP_DASHBOARD_IMAGE}
environment:
TZ: Asia/Kolkata
PROFILE: ${PROFILE}
KAFKA_HOSTNAME: ${KAFKA_HOSTNAME}
KAFKA_PORT: ${KAFKA_PORT}
SERVICES_HOSTNAME: ${SERVICES_HOSTNAME}
SERVICES_PORT: ${SERVICES_PORT}
CONFIG_HOSTNAME: ${CONFIG_HOSTNAME}
CONFIG_PORT: ${CONFIG_PORT}
CONFIG_USERNAME: ${CONFIG_USERNAME}
CONFIG_PASSWORD: ${CONFIG_PASSWORD}
POSTGRES_HOSTNAME: ${POSTGRES_HOSTNAME}
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_DEFAULT: ${POSTGRES_DEFAULT}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
JENKINS_HOSTNAME: ${JENKINS_HOSTNAME}
JENKINS_PORT: ${JENKINS_PORT}
JENKINS_USERNAME: ${JENKINS_USERNAME}
JENKINS_PASSWORD: ${JENKINS_PASSWORD}
SSL_ENABLED: ${SSL_ENABLED}
deploy:
mode: replicated
replicas: 1
app:
image: ${IDP_UI_IMAGE}
environment:
TZ: Asia/Kolkata
PROFILE: ${PROFILE}
GRAFANA_HOSTNAME: ${GRAFANA_HOSTNAME}
GRAFANA_PORT: ${GRAFANA_PORT}
CONFIG_HOSTNAME: ${CONFIG_HOSTNAME}
CONFIG_PORT: ${CONFIG_PORT}
CONFIG_USERNAME: ${CONFIG_USERNAME}
CONFIG_PASSWORD: ${CONFIG_PASSWORD}
OAUTH_HOSTNAME: ${OAUTH_HOSTNAME}
OAUTH_PORT: ${OAUTH_PORT}
DASHBOARD_HOSTNAME: ${DASHBOARD_HOSTNAME}
DASHBOARD_PORT: ${DASHBOARD_PORT}
IDPAPP_HOSTNAME: ${IDPAPP_HOSTNAME}
IDPAPP_PORT: ${IDPAPP_PORT}
SUBSCRIPTION_HOSTNAME: ${SUBSCRIPTION_HOSTNAME}
SUBSCRIPTION_PORT: ${SUBSCRIPTION_PORT}
SERVICES_HOSTNAME: ${SERVICES_HOSTNAME}
SERVICES_PORT: ${SERVICES_PORT}
KEYCLOAK_HOSTNAME: ${KEYCLOAK_HOSTNAME}
KEYCLOAK_PORT: ${KEYCLOAK_PORT}
CLOUD_DEPLOY_FLAG: ${CLOUD_DEPLOY_FLAG}
HIDE_JSON_CONVERT: ${HIDE_JSON_CONVERT}
SSL_ENABLED: ${SSL_ENABLED}
deploy:
mode: replicated
replicas: 1
subscription:
image: ${IDP_SUBSCRIPTION_IMAGE}
environment:
TZ: Asia/Kolkata
PROFILE: ${PROFILE}
GRAFANA_HOSTNAME: ${GRAFANA_HOSTNAME}
GRAFANA_PORT: ${GRAFANA_PORT}
KAFKA_HOSTNAME: ${KAFKA_HOSTNAME}
KAFKA_PORT: ${KAFKA_PORT}
CONFIG_HOSTNAME: ${CONFIG_HOSTNAME}
CONFIG_PORT: ${CONFIG_PORT}
CONFIG_USERNAME: ${CONFIG_USERNAME}
CONFIG_PASSWORD: ${CONFIG_PASSWORD}
EUREKA_HOSTNAME: ${EUREKA_HOSTNAME}
EUREKA_PORT: ${EUREKA_PORT}
SCHEDULER_HOSTNAME: ${SCHEDULER_HOSTNAME}
SCHEDULER_PORT: ${SCHEDULER_PORT}
POSTGRES_HOSTNAME: ${POSTGRES_HOSTNAME}
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_DEFAULT: ${POSTGRES_DEFAULT}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
KEYCLOAK_HOSTNAME: ${KEYCLOAK_HOSTNAME}
KEYCLOAK_PORT: ${KEYCLOAK_PORT}
KEYCLOAK_USER: ${KEYCLOAK_USER}
KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD}
JENKINS_HOSTNAME: ${JENKINS_HOSTNAME}
JENKINS_PORT: ${JENKINS_PORT}
JENKINS_USERNAME: ${JENKINS_USERNAME}
JENKINS_PASSWORD: ${JENKINS_PASSWORD}
OAUTH_HOSTNAME: ${OAUTH_HOSTNAME}
OAUTH_PORT: ${OAUTH_PORT}
DASHBOARD_HOSTNAME: ${DASHBOARD_HOSTNAME}
DASHBOARD_PORT: ${DASHBOARD_PORT}
IDPAPP_HOSTNAME: ${IDPAPP_HOSTNAME}
IDPAPP_PORT: ${IDPAPP_PORT}
SUBSCRIPTION_HOSTNAME: ${SUBSCRIPTION_HOSTNAME}
SUBSCRIPTION_PORT: ${SUBSCRIPTION_PORT}
SERVICES_HOSTNAME: ${SERVICES_HOSTNAME}
SERVICES_PORT: ${SERVICES_PORT}
SSL_ENABLED: ${SSL_ENABLED}
deploy:
mode: replicated
replicas: 1
scheduler:
image: ${IDP_SCHEDULER_IMAGE}
environment:
TZ: Asia/Kolkata
PROFILE: ${PROFILE}
GRAFANA_HOSTNAME: ${GRAFANA_HOSTNAME}
GRAFANA_PORT: ${GRAFANA_PORT}
ZOOKEEPER_HOSTNAME: ${ZOOKEEPER_HOSTNAME}
ZOOKEEPER_PORT: ${ZOOKEEPER_PORT}
KAFKA_HOSTNAME: ${KAFKA_HOSTNAME}
KAFKA_PORT: ${KAFKA_PORT}
CONFIG_HOSTNAME: ${CONFIG_HOSTNAME}
CONFIG_PORT: ${CONFIG_PORT}
CONFIG_USERNAME: ${CONFIG_USERNAME}
CONFIG_PASSWORD: ${CONFIG_PASSWORD}
EUREKA_HOSTNAME: ${EUREKA_HOSTNAME}
EUREKA_PORT: ${EUREKA_PORT}
SCHEDULER_HOSTNAME: ${SCHEDULER_HOSTNAME}
SCHEDULER_PORT: ${SCHEDULER_PORT}
POSTGRES_HOSTNAME: ${POSTGRES_HOSTNAME}
POSTGRES_PORT: ${POSTGRES_PORT}
POSTGRES_DEFAULT: ${POSTGRES_DEFAULT}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
KEYCLOAK_HOSTNAME: ${KEYCLOAK_HOSTNAME}
KEYCLOAK_PORT: ${KEYCLOAK_PORT}
KEYCLOAK_USER: ${KEYCLOAK_USER}
KEYCLOAK_PASSWORD: ${KEYCLOAK_PASSWORD}
JENKINS_HOSTNAME: ${JENKINS_HOSTNAME}
JENKINS_PORT: ${JENKINS_PORT}
JENKINS_USERNAME: ${JENKINS_USERNAME}
JENKINS_PASSWORD: ${JENKINS_PASSWORD}
# module.
# Provides single point of interaction to jenkins core engine and accessible only to orchestrator.
jenkinsconnector:
image: ${IDP_JENKINSCON_IMAGE}
environment:
TZ: Asia/Kolkata
PROFILE: ${PROFILE}
KAFKA_HOSTNAME: ${KAFKA_HOSTNAME}
KAFKA_PORT: ${KAFKA_PORT}
JENKINS_HOSTNAME: ${JENKINS_HOSTNAME}
JENKINS_PORT: ${JENKINS_PORT}
JENKINS_USERNAME: ${JENKINS_USERNAME}
JENKINS_PASSWORD: ${JENKINS_PASSWORD}
TRACER_FLAG: ${TRACER_FLAG}
JAEGER_HOSTNAME: ${JAEGER_HOSTNAME}
SSL_ENABLED: ${SSL_ENABLED}
deploy:
mode: replicated
replicas: 1
# As part of modern multi-CI approach, all execution engine requests will be published to this component
# and based on content it will decide and forward the request to excution engine
orchestrator:
environment:
TZ: Asia/Kolkata
PROFILE: ${PROFILE}
JENKINS_CONNECTOR: "http://${CON_JENKINS_HOSTNAME}:${CON_JENKINS_PORT}/idpjenkins"
TRACER_FLAG: ${TRACER_FLAG}
JAEGER_HOSTNAME: ${JAEGER_HOSTNAME}
SSL_ENABLED: ${SSL_ENABLED}
deploy:
mode: replicated
replicas: 1
OAUTH_HOSTNAME: ${OAUTH_HOSTNAME}
OAUTH_PORT: ${OAUTH_PORT}
DASHBOARD_HOSTNAME: ${DASHBOARD_HOSTNAME}
DASHBOARD_PORT: ${DASHBOARD_PORT}
IDPAPP_HOSTNAME: ${IDPAPP_HOSTNAME}
IDPAPP_PORT: ${IDPAPP_PORT}
SUBSCRIPTION_HOSTNAME: ${SUBSCRIPTION_HOSTNAME}
SUBSCRIPTION_PORT: ${SUBSCRIPTION_PORT}
SERVICES_HOSTNAME: ${SERVICES_HOSTNAME}
SERVICES_PORT: ${SERVICES_PORT}
SSL_ENABLED: ${SSL_ENABLED}
deploy:
mode: replicated
replicas: 1