-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
255 lines (240 loc) · 7.88 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
version: "3"
networks:
xs2a-net:
volumes:
xs2a-connector-data:
xs2a-fakesmtp-data:
xs2a-ledgers-data:
xs2a-tpp-rest-server-data:
services:
# Xs2a connector example
xs2a-connector-examples:
image: adorsys/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/auth
- 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: adorsys/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: adorsys/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-95-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: adorsys/xs2a-online-banking:${SANDBOX_VERSION}
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:
KEYCLOAK_AUTH_SERVER_URL: "http://ledgers-keycloak:8080/auth"
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/api/v1/consents/confirm/{userLogin}/{consentId}/{authorizationId}/{tan}"
SPRING_DATASOURCE_HIKARI_JDBCURL: "jdbc:postgresql://xs2a-consent-management-db/consent?currentSchema=consent"
SPRING_DATASOURCE_HIKARI_USERNAME: "cms"
SPRING_DATASOURCE_HIKARI_PASSWORD: "cms"
SERVER_KEY: "secret123"
# Ledgers
ledgers:
image: adorsys/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/auth
- 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
- SPRING_MAIL_HOST=fakesmtp
- SPRING_MAIL_PORT=25
- LEDGERS_SCA_AUTHCODE_APP_OTP_SOCKET_SERVICE_URL=http://xs2a-online-banking:8090/api/v1/decoupled/message
volumes:
- xs2a-ledgers-data:/var/lib/data
depends_on:
- fakesmtp
- ledgers-keycloak
# Keycloak as IDP
ledgers-keycloak:
image: adorsys/ledgers-keycloak:${LEDGERS_VERSION}
container_name: ledgers-keycloak
restart: on-failure
networks:
- xs2a-net
ports:
- "8080:8080"
environment:
- KEYCLOAK_USER=admin
- KEYCLOAK_PASSWORD=admin
# Xs2a online banking frontend
xs2a-online-banking-ui:
image: asastech/oba-ui:v.0.1
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: asastech/tpp-ui:v.0.1
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: adorsys/xs2a-tpp-rest-server:${SANDBOX_VERSION}
restart: on-failure
environment:
KEYCLOAK_AUTH_SERVER_URL: "http://ledgers-keycloak:8080/auth"
LEDGERS_URL: "http://ledgers:8088"
SPRING_DATASOURCE_HIKARI_JDBCURL: "jdbc:postgresql://xs2a-consent-management-db/consent?currentSchema=consent"
SPRING_DATASOURCE_HIKARI_USERNAME: "cms"
SPRING_DATASOURCE_HIKARI_PASSWORD: "cms"
SPRING_CONSENT_DATASOURCE_HIKARI_JDBCURL: "jdbc:postgresql://xs2a-consent-management-db/consent?currentSchema=consent"
SPRING_CONSENT_DATASOURCE_HIKARI_USERNAME: "cms"
SPRING_CONSENT_DATASOURCE_HIKARI_PASSWORD: "cms"
SPRING_TPP_DATASOURCE_HIKARI_JDBCURL: "jdbc:postgresql://xs2a-consent-management-db/consent?currentSchema=tpp"
SPRING_TPP_DATASOURCE_HIKARI_USERNAME: "cms"
SPRING_TPP_DATASOURCE_HIKARI_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
# Developer portal ui
developer-portal-ui:
image: asastech/developer-portal-ui:v.0.1
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: adorsys/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