-
Notifications
You must be signed in to change notification settings - Fork 40
/
docker-compose.yml
334 lines (317 loc) · 10.4 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
version: "3"
networks:
xs2a-net:
volumes:
xs2a-connector-data:
xs2a-fakesmtp-data:
xs2a-ledgers-data:
xs2a-tpp-rest-server-data:
xs2a-admin-rest-server-data:
services:
# XS2A connector example
xs2a-connector-examples:
image: gitlab-registry.adorsys.de/adorsys/xs2a/xs2a-connector-examples/xs2a-connector-examples:${XS2A_CONNECTOR_VERSION}
container_name: xs2a-connector-examples
restart: on-failure
ports:
- "8089:8089"
- "8189:8000"
environment:
- SPRING_PROFILES_ACTIVE=mock-qwac
- KEYCLOAK_AUTH_SERVER_URL=http://ledgers-keycloak:8080
- XS2A_CMS_ASPSP-PROFILE_BASEURL=http://xs2a-aspsp-profile:8080/api/v1
- XS2A_CMS_CONSENT-SERVICE_BASEURL=http://xs2a-consent-management:8080/api/v1
- XS2A_CMS_URL=http://xs2a-consent-management:8080
- XS2ASANDBOX_LEDGERS_URL=http://ledgers:8088
- XS2ASANDBOX_TPPUI_ONLINE-BANKING_URL=http://xs2a-online-banking:8090/api/v1/consents/confirm/{userLogin}/{consentId}/{authorizationId}/{tan}
- QWAC_CERTIFICATE_MOCK=${QWAC_CERTIFICATE_MOCK}
- XS2A_FUNDS_CONFIRMATION_USER_LOGIN=admin
- XS2A_FUNDS_CONFIRMATION_USER_PASSWORD=admin123
networks:
- xs2a-net
depends_on:
- xs2a-aspsp-profile
- xs2a-consent-management
- ledgers
# XS2A aspsp profile
xs2a-aspsp-profile:
image: gitlab-registry.adorsys.de/adorsys/xs2a/aspsp-xs2a/xs2a-aspsp-profile:${XS2A_ASPSP_PROFILE_VERSION}
container_name: xs2a-aspsp-profile
restart: on-failure
environment:
- JAVA_TOOL_OPTIONS="-Xmx256M"
- SPRING_PROFILES_ACTIVE=debug_mode
- XS2A_BANK_PROFILE_PATH=bank_profile_ledgers.yml
volumes:
- ./bank-profile/bank_profile_ledgers.yml:/opt/profile/bank_profile_ledgers.yml
ports:
- "48080:8080"
networks:
- xs2a-net
# Consent management
xs2a-consent-management:
image: gitlab-registry.adorsys.de/adorsys/xs2a/aspsp-xs2a/xs2a-consent-management:${XS2A_CONSENT_MANAGEMENT_VERSION}
container_name: xs2a-consent-management
restart: on-failure
ports:
- "38080:8080"
networks:
- xs2a-net
environment:
- XS2A_CMS_ASPSP_PROFILE_BASEURL=http://xs2a-aspsp-profile:8080/api/v1
- SPRING_DATASOURCE_URL=jdbc:postgresql://xs2a-consent-management-db/consent?currentSchema=consent
- SPRING_DATASOURCE_USERNAME=cms
- SPRING_DATASOURCE_PASSWORD=cms
- SERVER_KEY=secret123
- SPRING_LIQUIBASE_ENABLED=true
- USED-NON-RECURRING-CONSENT-EXPIRATION.CRON.EXPRESSION=0 0 * * * *
depends_on:
- xs2a-consent-management-db
# XS2A consent management DB
xs2a-consent-management-db:
image: centos/postgresql-12-centos7
container_name: xs2a-consent-management-db
restart: on-failure
volumes:
- xs2a-connector-data:/var/lib/pgsql/data
- ./db-scripts/pg-create-schema.sh:/usr/share/container-scripts/postgresql/start/zzz-create-schema.sh
expose:
- 5432
ports:
- "5432:5432"
networks:
- xs2a-net
environment:
- POSTGRESQL_ADMIN_PASSWORD=postgres
- POSTGRESQL_DATABASE=consent
- POSTGRESQL_USER=cms
- POSTGRESQL_PASSWORD=cms
# XS2A online banking backend
xs2a-online-banking:
image: gitlab-registry.adorsys.de/adorsys/xs2a/psd2-dynamic-sandbox/xs2a-online-banking:${SANDBOX_VERSION}
build:
context: online-banking/online-banking-app
dockerfile: Dockerfile
container_name: xs2a-online-banking
restart: on-failure
ports:
- "8090:8090"
- "8190:8000"
depends_on:
- ledgers
- xs2a-connector-examples
- xs2a-consent-management-db
networks:
- xs2a-net
environment:
SERVER_KEY: "secret123"
KEYCLOAK_AUTH_SERVER_URL: "http://ledgers-keycloak:8080"
XS2A_URL: "http://xs2a-connector-examples:8089"
LEDGERS_URL: "http://ledgers:8088"
CMS_URL: "http://xs2a-consent-management:8080"
OBA_URL: "http://localhost:4400"
SELF_URL: "http://localhost:8090"
ONLINE_BANKING_SCA_LOGINPAGE: "http://localhost:4400/"
ONLINE_BANKING_SCA_UIREDIRECT: "true"
ONLINE-BANKING_URL: "http://xs2a-online-banking:8090"
DB_HOST: "xs2a-consent-management-db"
DB_DATABASE: "consent"
DB_USER: "cms"
DB_PASSWORD: "cms"
# Ledgers
ledgers:
image: gitlab-registry.adorsys.de/adorsys/xs2a/ledgers/ledgers:${LEDGERS_VERSION}
container_name: ledgers
restart: on-failure
networks:
- xs2a-net
ports:
- "8088:8088"
- "8188:8001"
environment:
- SPRING_PROFILES_ACTIVE=postgres,sandbox
- SPRING_JPA_SHOW_SQL=false
- KEYCLOAK_AUTH_SERVER_URL=http://ledgers-keycloak:8080
- DB_HOST=xs2a-consent-management-db
- DB_URL=jdbc:postgresql://xs2a-consent-management-db/consent?currentSchema=ledgers
- DB_DATABASE=consent
- DB_USER=cms
- DB_PASSWORD=cms
- LIQUIBASE_ENABLED=true
- LEDGERS_SCA_MULTILEVEL_ENABLED=false
- LEDGERS_SCA_AUTHORISATION_CONFIRMATION_ENABLED=false
- LEDGERS_SCA_AUTHCODE_APP_OTP_SOCKET_SERVICE_URL=http://xs2a-online-banking:8090/api/v1/decoupled/message
# SMTP related settings
- SPRING_MAIL_HOST=fakesmtp
- SPRING_MAIL_PORT=25
# - SPRING_MAIL_HOST=smtp.gmail.com
# - SPRING_MAIL_PORT=465
# - SPRING_MAIL_USERNAME=modelbank.mail@gmail.com
# - SPRING_MAIL_PASSWORD=password
# - SPRING_MAIL_PROPERTIES_SMTP_AUTH=true
# - SPRING_MAIL_PROPERTIES_SMTP_SSL=true
# - SPRING_MAIL_PROPERTIES_SMTP_START_TLS=false
# - SPRING_MAIL_PROPERTIES_SMTP_FROM=modelbank.mail@gmail.com
# - SPRING_MAIL_PROPERTIES_SMTP_FROM_DISPLAY_NAME=Ledgers
# - SPRING_MAIL_PROPERTIES_SMTP_ENVELOPE_FROM=modelbank.mail@gmail.com
# - SPRING_MAIL_PROPERTIES_SMTP_REPLY_TO=modelbank.mail@gmail.com
# - SPRING_MAIL_PROPERTIES_SMTP_REPLY_TO_DISPLAY_NAME=Ledgers support
volumes:
- xs2a-ledgers-data:/var/lib/data
depends_on:
- fakesmtp
- ledgers-keycloak
- xs2a-consent-management-db
# Keycloak as IDP
ledgers-keycloak:
image: gitlab-registry.adorsys.de/adorsys/xs2a/ledgers/keycloak-and-ledgers-plugin:${LEDGERS_VERSION}
container_name: ledgers-keycloak
restart: on-failure
networks:
- xs2a-net
ports:
- "8080:8080"
environment:
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=admin
- KC_DB=postgres
- KC_DB_URL_HOST=xs2a-consent-management-db
- KC_DB_URL_DATABASE=keycloak
- KC_DB_USERNAME=keycloak
- KC_DB_PASSWORD=keycloak
- KC_PROXY=edge
depends_on:
- xs2a-consent-management-db
# XS2A online banking frontend
xs2a-online-banking-ui:
image: gitlab-registry.adorsys.de/adorsys/xs2a/psd2-dynamic-sandbox/xs2a-online-banking-ui:${SANDBOX_VERSION}
build:
context: oba-ui
dockerfile: Dockerfile
restart: on-failure
ports:
- "4400:4400"
networks:
- xs2a-net
environment:
ONLINE_BANKING_SERVER_URL: "http://xs2a-online-banking:8090"
DEV_PORTAL_URL_EXT: "http://localhost:4206"
depends_on:
- xs2a-online-banking
- developer-portal-ui
# TPP-UI
xs2a-tpp-ui:
image: gitlab-registry.adorsys.de/adorsys/xs2a/psd2-dynamic-sandbox/xs2a-bank-tpp-ui:${SANDBOX_VERSION}
build:
context: tpp-ui
dockerfile: Dockerfile
restart: on-failure
environment:
- TPP_REST_SERVER_URL=http://xs2a-tpp-rest-server:8093
- CERT_GEN_URL=http://certificate-generator:8092
- CERT_GEN_ENABLED=true
ports:
- "4205:4205"
networks:
- xs2a-net
depends_on:
- certificate-generator
- xs2a-tpp-rest-server
# TPP-REST-SERVER
xs2a-tpp-rest-server:
image: gitlab-registry.adorsys.de/adorsys/xs2a/psd2-dynamic-sandbox/xs2a-tpp-rest-server:${SANDBOX_VERSION}
build:
context: tpp-app/tpp-rest-server
dockerfile: Dockerfile
restart: on-failure
environment:
KEYCLOAK_AUTH_SERVER_URL: "http://ledgers-keycloak:8080"
LEDGERS_URL: "http://ledgers:8088"
CMS_URL: "http://xs2a-consent-management:8080"
DB_HOST: "xs2a-consent-management-db"
DB_DATABASE: "consent"
DB_USER: "cms"
DB_PASSWORD: "cms"
ports:
- "8093:8093"
- "5005:5005"
networks:
- xs2a-net
depends_on:
- ledgers
- xs2a-consent-management-db
volumes:
- xs2a-tpp-rest-server-data:/var/lib/data
# Admin-UI
xs2a-admin-ui:
image: gitlab-registry.adorsys.de/adorsys/xs2a/psd2-dynamic-sandbox/xs2a-bank-admin-ui:${SANDBOX_VERSION}
build:
context: admin-ui
dockerfile: Dockerfile
restart: on-failure
environment:
- ADMIN_REST_SERVER_URL=http://xs2a-admin-rest-server:8094
- CERT_GEN_URL=http://certificate-generator:8092
- CERT_GEN_ENABLED=true
ports:
- "4207:4207"
networks:
- xs2a-net
depends_on:
- certificate-generator
- xs2a-admin-rest-server
# ADMIN-REST-SERVER
xs2a-admin-rest-server:
image: gitlab-registry.adorsys.de/adorsys/xs2a/psd2-dynamic-sandbox/xs2a-admin-rest-server:${SANDBOX_VERSION}
build:
context: admin-app/admin-rest-server
dockerfile: Dockerfile
restart: on-failure
environment:
KEYCLOAK_AUTH_SERVER_URL: "http://ledgers-keycloak:8080"
LEDGERS_URL: "http://ledgers:8088"
DB_HOST: "xs2a-consent-management-db"
DB_DATABASE: "consent"
DB_USER: "cms"
DB_PASSWORD: "cms"
ports:
- "8094:8094"
- "5006:5006"
networks:
- xs2a-net
depends_on:
- ledgers
- xs2a-consent-management-db
volumes:
- xs2a-admin-rest-server-data:/var/lib/data
# Developer portal ui
developer-portal-ui:
image: gitlab-registry.adorsys.de/adorsys/xs2a/psd2-dynamic-sandbox/xs2a-bank-devportal:${SANDBOX_VERSION}
build:
context: developer-portal-ui
dockerfile: Dockerfile
restart: on-failure
ports:
- "4206:4206"
networks:
- xs2a-net
depends_on:
- xs2a-connector-examples
environment:
- XS2A_URL=http://xs2a-connector-examples:8089
- ASPSP_URL=http://xs2a-aspsp-profile:8080
# Certificate generator
certificate-generator:
image: gitlab-registry.adorsys.de/adorsys/xs2a/aspsp-xs2a/xs2a-certificate-generator:${XS2A_CONSENT_MANAGEMENT_VERSION}
restart: on-failure
ports:
- "8092:8092"
networks:
- xs2a-net
# Fake SMTP
fakesmtp:
image: munkyboy/fakesmtp:latest
networks:
- xs2a-net
volumes:
- xs2a-fakesmtp-data:/var/mail