-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose.generic.yaml
228 lines (220 loc) · 7.77 KB
/
docker-compose.generic.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
222
223
224
225
226
227
228
version: "3.0"
services:
financroo-tpp:
image: cloudentity/openbanking-quickstart-financroo-tpp:${VERSION}
container_name: financroo-tpp
platform: linux/x86_64
restart: always
ports:
- "8091:8091"
volumes:
- ./data:/certs
- ./mount/financroo-tpp:/app/data
- ./mount/financroo-tpp/banks.json:/app/banks.json
env_file:
- .env
environment:
- UI_URL=https://${APP_HOST}:8091
- TENANT=${TENANT}
- GIN_MODE=debug # change to release to disable gin debug
- SPEC=generic
- BANK_URL=http://gobank:8070
- OPENBANKING_SERVER_ID=${SERVER}
- ENABLE_TLS_SERVER=true
- CLIENT_ID=${FINANCROO_TPP_CLIENT_ID}
- ENABLE_DCR=true
- BANKS_CONFIG_FILE=/app/banks.json
depends_on:
configuration:
condition: service_completed_successfully
gobank-consent-page:
image: cloudentity/openbanking-quickstart-consent-page:${VERSION}
container_name: gobank-consent-page
platform: linux/x86_64
restart: always
ports:
- "7080:8080"
volumes:
- ./mount/consent-page:/data
- ./data/ca.pem:/ca.pem
- ./data/bank_cert.pem:/bank_cert.pem
- ./data/bank_key.pem:/bank_key.pem
- ./data/consent_storage_cert.pem:/consent_storage_cert.pem
- ./data/consent_storage_key.pem:/consent_storage_key.pem
env_file:
- .env
environment:
- ISSUER_URL=${ACP_MTLS_URL}/${TENANT}/system
- BANK_URL=http://gobank:8070
- BANK_ACCOUNTS_ENDPOINT=http://gobank:8070/internal/accounts
- BANK_CLIENT_TOKEN_URL=${ACP_URL}/${TENANT}/${SERVER}/oauth2/token
- BANK_CLIENT_ID=${INTERNAL_BANK_CLIENT_ID}
- BANK_CLIENT_SECRET=pMPBmv62z3Jt1S4sWl2qRhOhEGPVZ9EcujGL7Xy0-E0
- LOG_LEVEL=debug
- SPEC=generic
- GIN_MODE=debug # change to release to disable gin debug
- OTP_MODE=mock # change to custom to enable custom OTP handling
- MFA_CLAIM=sub # for mobile use mobile_verified
- CLIENT_ID=${CONSENT_PAGE_CLIENT_ID}
- CONSENT_STORAGE_MODE=external
- EXTERNAL_CONSENT_STORAGE_URL=https://gobank-consent-storage:8084
- EXTERNAL_CONSENT_STORAGE_CLIENT_CERT_FILE=/consent_storage_cert.pem
- EXTERNAL_CONSENT_STORAGE_CLIENT_KEY_FILE=/consent_storage_key.pem
- EXTERNAL_CONSENT_STORAGE_CLIENT_ROOT_CA=/ca.pem
depends_on:
configuration:
condition: service_completed_successfully
gobank-consent-storage:
image: cloudentity/openbanking-quickstart-consent-storage:${VERSION}
container_name: gobank-consent-storage
ports:
- "8084:8084"
env_file:
- .env
environment:
- ISSUER_URL=${ACP_MTLS_URL}/${TENANT}/system
- SERVER=${SERVER}
- CLIENT_ID=${CONSENT_STORAGE_CLIENT_ID}
- CLIENT_SECRET=aMPBmv62z3Jt1S4sWl2qRhOhEGPVZ9EcujGL7Xy0-E1
restart: on-failure
volumes:
- ./data/ca.pem:/ca.pem
- ./data/consent_storage_cert.pem:/consent_storage_cert.pem
- ./data/consent_storage_key.pem:/consent_storage_key.pem
- ./mount/gobank-consent-storage:/app/data
depends_on:
configuration:
condition: service_completed_successfully
hyperscale-consent-page:
image: cloudentity/openbanking-quickstart-consent-page:${VERSION}
container_name: hyperscale-consent-page
platform: linux/x86_64
restart: always
ports:
- "6080:8080"
volumes:
- ./mount/consent-page:/data
- ./data/ca.pem:/ca.pem
- ./data/bank_cert.pem:/bank_cert.pem
- ./data/bank_key.pem:/bank_key.pem
env_file:
- .env
environment:
- ISSUER_URL=${ACP_MTLS_URL}/${TENANT}/system
- BANK_URL=http://hyperscalebank:8070
- BANK_ACCOUNTS_ENDPOINT=http://hyperscalebank:8070/internal/accounts
- BANK_CLIENT_TOKEN_URL=${ACP_URL}/${TENANT}/${SERVER}/oauth2/token
- BANK_CLIENT_ID=${INTERNAL_BANK_CLIENT_ID}
- BANK_CLIENT_SECRET=pMPBmv62z3Jt1S4sWl2qRhOhEGPVZ9EcujGL7Xy0-E0
- LOG_LEVEL=debug
- SPEC=generic
- GIN_MODE=debug # change to release to disable gin debug
- OTP_MODE=mock # change to custom to enable custom OTP handling
- MFA_CLAIM=sub # for mobile use mobile_verified
- CLIENT_ID=${HYPERSCALE_CONSENT_PAGE_CLIENT_ID}
- CONSENT_STORAGE_MODE=identity
- IDENTITY_POOL_CONSENT_STORAGE_ISSUER_URL=${ACP_URL}/${TENANT}/system
- IDENTITY_POOL_CONSENT_STORAGE_CLIENT_ID=hyperscalebank-consent-storage-mgmt
- IDENTITY_POOL_CONSENT_STORAGE_CLIENT_SECRET=aXPBmv62z3Jt1S4sWl2qRhOhEGPVZ9EcujGL7Xy0-X3
- IDENTITY_POOL_CONSENT_STORAGE_ROOT_CA=/ca.pem
- IDENTITY_POOL_CONSENT_STORAGE_POOL_ID=hyperscalebank-consent-storage
- BANK_LOGO=hyperscalebank_logo.svg
depends_on:
configuration:
condition: service_completed_successfully
gobank:
image: cloudentity/openbanking-quickstart-bank:${VERSION}
container_name: gobank
platform: linux/x86_64
restart: always
ports:
- "8070:8070"
volumes:
- ./data/ca.pem:/ca.pem
- ./data/bank_cert.pem:/bank_cert.pem
- ./data/bank_key.pem:/bank_key.pem
- ./mount/gobank-generic:/app/data
environment:
- ISSUER_URL=${ACP_MTLS_URL}/${TENANT}/${SERVER}
- SPEC=generic
- GIN_MODE=debug
- CLIENT_ID=${BANK_CLIENT_ID}
depends_on:
configuration:
condition: service_completed_successfully
hyperscalebank:
image: cloudentity/openbanking-quickstart-bank:${VERSION}
container_name: hyperscalebank
platform: linux/x86_64
restart: always
ports:
- "7070:8070"
volumes:
- ./data/ca.pem:/ca.pem
- ./data/bank_cert.pem:/bank_cert.pem
- ./data/bank_key.pem:/bank_key.pem
- ./mount/hyperscalebank-generic:/app/data
environment:
- ISSUER_URL=${ACP_MTLS_URL}/${TENANT}/${HYPERSCALE_SERVER}
- SPEC=generic
- GIN_MODE=debug
- CLIENT_ID=${HYPERSCALE_BANK_CLIENT_ID}
depends_on:
configuration:
condition: service_completed_successfully
configuration:
container_name: configuration-system
platform: linux/x86_64
image: cloudentity/openbanking-quickstart-configuration:${VERSION}
restart: on-failure
volumes:
- ./data/tpp_cert.pem:/certs/tpp_cert.pem
- ./data/ca.pem:/certs/ca.pem
- ./data/variables.yaml:/variables.yaml
- ./data/imports/generic/system.tmpl:/app/imports-generic/system.tmpl
- ./data/imports/generic/gobank.tmpl:/app/imports-generic/gobank.tmpl
- ./data/imports/generic/hyperscalebank.tmpl:/app/imports-generic/hyperscalebank.tmpl
- ./data/imports/generic/tenant.tmpl:/app/imports-generic/tenant.tmpl
command:
- /app/main
- --tenant-url
- ${CONFIGURATION_TENANT_URL}
- --tenant
- ${CONFIGURATION_TENANT}
- --client-id
- ${CONFIGURATION_CLIENT_ID}
- --client-secret
- ${CONFIGURATION_CLIENT_SECRET}
- --templates-dirs
- /app/imports-generic
- --variables-file
- /variables.yaml
- --verbose
configuration-identity:
container_name: configuration-identity
platform: linux/x86_64
image: cloudentity/openbanking-quickstart-configuration:${VERSION}
restart: on-failure
volumes:
- ./data/variables.yaml:/variables.yaml
- ./data/imports/generic/hyperscalebank-identity.tmpl:/app/imports-generic/hyperscalebank-identity.tmpl
command:
- /app/main
- --tenant-url
- ${IDENTITY_CONFIGURATION_TENANT_URL}
- --tenant
- ${IDENTITY_CONFIGURATION_TENANT}
- --client-id
- ${IDENTITY_CONFIGURATION_CLIENT_ID}
- --client-secret
- ${IDENTITY_CONFIGURATION_CLIENT_SECRET}
- --templates-dirs
- /app/imports-generic
- --variables-file
- /variables.yaml
- --verbose
- --target
- identity
depends_on:
configuration:
condition: service_completed_successfully