Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
266 lines (253 loc) · 9.11 KB
/
Copy pathdocker-compose.yml
File metadata and controls
266 lines (253 loc) · 9.11 KB
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
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: opendebt
POSTGRES_PASSWORD: opendebt
POSTGRES_MULTIPLE_DATABASES: opendebt_person,opendebt_case,opendebt_debt,opendebt_creditor,opendebt_payment,opendebt_letter,opendebt_offsetting,opendebt_wage_garnishment,opendebt_keycloak
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
- ./config/postgres/init-multiple-dbs.sh:/docker-entrypoint-initdb.d/init-multiple-dbs.sh
healthcheck:
test: ["CMD-SHELL", "pg_isready -U opendebt"]
interval: 10s
timeout: 5s
retries: 5
keycloak:
image: quay.io/keycloak/keycloak:24.0
command: start-dev --import-realm --health-enabled=true
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres:5432/opendebt_keycloak
KC_DB_USERNAME: opendebt
KC_DB_PASSWORD: opendebt
ports:
- "8080:8080"
volumes:
- ./config/keycloak:/opt/keycloak/data/import
depends_on:
postgres:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "timeout 2 bash -c '</dev/tcp/localhost/8080' || exit 1"]
interval: 15s
timeout: 10s
retries: 10
start_period: 60s
person-registry:
build: ./opendebt-person-registry
ports:
- "8090:8090"
environment:
SPRING_PROFILES_ACTIVE: local
DATABASE_URL: jdbc:postgresql://postgres:5432/opendebt_person
DATABASE_USERNAME: opendebt
DATABASE_PASSWORD: opendebt
KEYCLOAK_ISSUER_URI: http://keycloak:8080/realms/opendebt
ENCRYPTION_KEY: ${ENCRYPTION_KEY:-YWJjZGVmZ2hpamtsbW5vcHFyc3R1dnd4eXoxMjM0NTY=}
DEMO_SEED_ORGANIZATIONS: "true"
DEMO_SEED_PERSONS: "true"
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
depends_on:
keycloak:
condition: service_healthy
postgres:
condition: service_healthy
case-service:
build: ./opendebt-case-service
ports:
- "8081:8081"
environment:
SPRING_PROFILES_ACTIVE: local
DATABASE_URL: jdbc:postgresql://postgres:5432/opendebt_case
DATABASE_USERNAME: opendebt
DATABASE_PASSWORD: opendebt
KEYCLOAK_ISSUER_URI: http://keycloak:8080/realms/opendebt
KEYCLOAK_JWK_URI: http://keycloak:8080/realms/opendebt/protocol/openid-connect/certs
PERSON_REGISTRY_URL: http://person-registry:8090
DEBT_SERVICE_URL: http://debt-service:8082
PAYMENT_SERVICE_URL: http://payment-service:8083
LETTER_SERVICE_URL: http://letter-service:8084
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
depends_on:
keycloak:
condition: service_healthy
postgres:
condition: service_healthy
person-registry:
condition: service_started
debt-service:
build: ./opendebt-debt-service
ports:
- "8082:8082"
environment:
SPRING_PROFILES_ACTIVE: local
DATABASE_URL: jdbc:postgresql://postgres:5432/opendebt_debt
DATABASE_USERNAME: opendebt
DATABASE_PASSWORD: opendebt
KEYCLOAK_ISSUER_URI: http://keycloak:8080/realms/opendebt
PERSON_REGISTRY_URL: http://person-registry:8090
CASE_SERVICE_URL: http://case-service:8081
CREDITOR_SERVICE_URL: http://creditor-service:8092
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
depends_on:
keycloak:
condition: service_healthy
postgres:
condition: service_healthy
person-registry:
condition: service_started
creditor-service:
condition: service_started
payment-service:
build: ./opendebt-payment-service
ports:
- "8083:8083"
environment:
SPRING_PROFILES_ACTIVE: local
DATABASE_URL: jdbc:postgresql://postgres:5432/opendebt_payment
DATABASE_USERNAME: opendebt
DATABASE_PASSWORD: opendebt
KEYCLOAK_ISSUER_URI: http://keycloak:8080/realms/opendebt
DEBT_SERVICE_URL: http://debt-service:8082
CASE_SERVICE_URL: http://case-service:8081
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
OPENDEBT_IMMUDB_ENABLED: "true"
OPENDEBT_IMMUDB_HOST: immudb
# Disable native epoll to prevent SIGSEGV in the gRPC/Netty shaded native library
JAVA_TOOL_OPTIONS: "-Dio.grpc.netty.shaded.io.netty.transport.noNative=true"
depends_on:
keycloak:
condition: service_healthy
postgres:
condition: service_healthy
immudb:
condition: service_healthy
letter-service:
build: ./opendebt-letter-service
ports:
- "8084:8084"
environment:
SPRING_PROFILES_ACTIVE: local
DATABASE_URL: jdbc:postgresql://postgres:5432/opendebt_letter
DATABASE_USERNAME: opendebt
DATABASE_PASSWORD: opendebt
KEYCLOAK_ISSUER_URI: http://keycloak:8080/realms/opendebt
CASE_SERVICE_URL: http://case-service:8081
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
depends_on:
keycloak:
condition: service_healthy
postgres:
condition: service_healthy
creditor-service:
build: ./opendebt-creditor-service
ports:
- "8092:8092"
environment:
SPRING_PROFILES_ACTIVE: local
DATABASE_URL: jdbc:postgresql://postgres:5432/opendebt_creditor
DATABASE_USERNAME: opendebt
DATABASE_PASSWORD: opendebt
KEYCLOAK_ISSUER_URI: http://keycloak:8080/realms/opendebt
PERSON_REGISTRY_URL: http://person-registry:8090
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
depends_on:
keycloak:
condition: service_healthy
postgres:
condition: service_healthy
person-registry:
condition: service_started
# immudb tamper-evidence layer (ADR-0029, TB-028 spike)
# AIDEV-NOTE: Disabled by default in payment-service (opendebt.immudb.enabled=false).
# Enable by setting OPENDEBT_IMMUDB_ENABLED=true in the payment-service environment block
# and configuring the connection properties below.
immudb:
image: codenotary/immudb:latest
command: ["--web-server"]
ports:
- "3322:3322" # gRPC API
- "8094:8080" # REST / web console (http://localhost:8094) — 8091 reserved for rules-engine
- "9497:9497" # Prometheus metrics
volumes:
- immudb_data:/var/lib/immudb
healthcheck:
test: ["CMD", "immuadmin", "status"]
interval: 15s
timeout: 5s
retries: 5
start_period: 10s
creditor-portal:
build: ./opendebt-creditor-portal
ports:
- "8085:8085"
environment:
SPRING_PROFILES_ACTIVE: local
KEYCLOAK_ISSUER_URI: http://keycloak:8080/realms/opendebt
KEYCLOAK_CLIENT_SECRET: creditor-portal-dev-secret
DEBT_SERVICE_URL: http://debt-service:8082
CASE_SERVICE_URL: http://case-service:8081
CREDITOR_SERVICE_URL: http://creditor-service:8092
PAYMENT_SERVICE_URL: http://payment-service:8083
# Wizard step 1 CPR/CVR verification — must use Docker service hostname, not localhost
PERSON_REGISTRY_URL: http://person-registry:8090
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
depends_on:
keycloak:
condition: service_healthy
creditor-service:
condition: service_started
person-registry:
condition: service_started
caseworker-portal:
build: ./opendebt-caseworker-portal
ports:
- "8087:8087"
environment:
SPRING_PROFILES_ACTIVE: local
KEYCLOAK_ISSUER_URI: http://keycloak:8080/realms/opendebt
KEYCLOAK_CLIENT_SECRET: caseworker-portal-dev-secret
CASE_SERVICE_URL: http://case-service:8081
DEBT_SERVICE_URL: http://debt-service:8082
PAYMENT_SERVICE_URL: http://payment-service:8083
PERSON_REGISTRY_URL: http://person-registry:8090
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
depends_on:
keycloak:
condition: service_healthy
case-service:
condition: service_started
citizen-portal:
build: ./opendebt-citizen-portal
ports:
- "8086:8086"
environment:
SPRING_PROFILES_ACTIVE: local
KEYCLOAK_ISSUER_URI: http://keycloak:8080/realms/opendebt
DEBT_SERVICE_URL: http://debt-service:8082
CASE_SERVICE_URL: http://case-service:8081
PAYMENT_SERVICE_URL: http://payment-service:8083
PERSON_REGISTRY_URL: http://person-registry:8090
# TastSelv (MitID/NemID citizen login) — pointed to Keycloak for local demo.
# Replace with real TastSelv endpoints for production.
TASTSELV_ISSUER_URI: http://keycloak:8080/realms/opendebt
TASTSELV_AUTH_URI: http://keycloak:8080/realms/opendebt/protocol/openid-connect/auth
TASTSELV_TOKEN_URI: http://keycloak:8080/realms/opendebt/protocol/openid-connect/token
TASTSELV_USERINFO_URI: http://keycloak:8080/realms/opendebt/protocol/openid-connect/userinfo
TASTSELV_JWK_URI: http://keycloak:8080/realms/opendebt/protocol/openid-connect/certs
TASTSELV_CLIENT_SECRET: demo-secret
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector:4318
depends_on:
keycloak:
condition: service_healthy
volumes:
postgres_data:
immudb_data:
networks:
default:
name: opendebt-network