@@ -80,7 +80,7 @@ services:
80
80
- did_generate_url=${DID_GENERATE_URL-http://identity:3332/did/generate}
81
81
- did_resolve_url=${DID_RESOLVE_URL-http://identity:3332/did/resolve}
82
82
- signature_enabled=${SIGNATURE_ENABLED-false}
83
- - signature_provider=${SIGNATURE_PROVIDER-dev.sunbirdrc.registry.service.impl.SignatureV1ServiceImpl }
83
+ - signature_provider=${SIGNATURE_PROVIDER-dev.sunbirdrc.registry.service.impl.SignatureV2ServiceImpl }
84
84
- signature_v2_health_check_url=${SIGNATURE_V2_HEALTH_CHECK_URL-http://credential:3000/health}
85
85
- signature_v2_issue_url=${SIGNATURE_V2_ISSUE_URL-http://credential:3000/credentials/issue}
86
86
- signature_v2_get_url=${SIGNATURE_V2_GET_URL-http://credential:3000/credentials/{id}}
@@ -110,7 +110,7 @@ services:
110
110
- logging.level.root=INFO
111
111
- enable_external_templates=true
112
112
- async_enabled=${ASYNC_ENABLED-false}
113
- - authentication_enabled=${AUTHENTICATION_ENABLED-true }
113
+ - authentication_enabled=${AUTHENTICATION_ENABLED-false }
114
114
- kafka_bootstrap_address=kafka:9092
115
115
- webhook_enabled=false
116
116
- webhook_url=http://localhost:5001/api/v1/callback
@@ -124,9 +124,6 @@ services:
124
124
- notification_url=${NOTIFICATION_URL-http://notification-ms:8765/notification-service/v1/notification}
125
125
ports :
126
126
- ' 8081:8081'
127
- networks :
128
- default :
129
- rcw :
130
127
depends_on :
131
128
db :
132
129
condition : service_healthy
@@ -191,35 +188,101 @@ services:
191
188
interval : 30s
192
189
timeout : 10s
193
190
retries : 10
194
- certificate-signer :
195
- image : ghcr.io/sunbird-rc/sunbird-rc-certificate-signer:${RELEASE_VERSION}
196
- environment :
197
- - PORT=8079
198
- - TIME_ZONE=Asia/Kolkata
199
- ports :
200
- - ' 8079:8079'
191
+ vault :
192
+ image : vault:1.13.3
193
+ restart : always
201
194
volumes :
202
- - ./imports:/etc/signer
203
- healthcheck :
204
- test : ['CMD-SHELL', 'curl -f http://localhost:8079/health || exit 1']
205
- interval : 30s
206
- timeout : 10s
207
- retries : 10
208
- certificate-api :
209
- image : ghcr.io/sunbird-rc/sunbird-rc-certificate-api:${RELEASE_VERSION}
195
+ - ./vault.json:/vault/config/vault.json
196
+ - ./vault-data:/vault/file
210
197
environment :
211
- - PORT=8078
198
+ - VAULT_ADDR=${VAULT_ADDR}
199
+ - VAULT_API_ADDR=${VAULT_API_ADDR}
200
+ - VAULT_ADDRESS=${VAULT_ADDRESS}
201
+ cap_add :
202
+ - IPC_LOCK
203
+ command : vault server -config=/vault/config/vault.json
212
204
ports :
213
- - ' 8078:8078 '
205
+ - 8200:8200
214
206
healthcheck :
215
207
test :
216
208
[
217
- ' CMD-SHELL' ,
218
- ' wget -nv -t1 -- spider http://localhost:8078/ health || exit 1' ,
209
+ " CMD-SHELL" ,
210
+ " wget -- spider http://127.0.0.1:8200/v1/sys/ health || exit 1" ,
219
211
]
220
- interval : 30s
221
- timeout : 10s
222
- retries : 10
212
+ interval : 10s
213
+ timeout : 5s
214
+ retries : 3
215
+ identity :
216
+ image : ghcr.io/sunbird-rc/sunbird-rc-identity-service:${RELEASE_VERSION}
217
+ ports :
218
+ - " 3332:3332"
219
+ depends_on :
220
+ vault :
221
+ condition : service_healthy
222
+ db :
223
+ condition : service_healthy
224
+ environment :
225
+ - DATABASE_URL=postgres://postgres:postgres@db:5432/registry
226
+ - VAULT_ADDR=${VAULT_ADDR}
227
+ - VAULT_TOKEN=${VAULT_TOKEN}
228
+ - VAULT_BASE_URL=${VAULT_BASE_URL}
229
+ - VAULT_ROOT_PATH=${VAULT_ROOT_PATH}
230
+ - VAULT_TIMEOUT=${VAULT_TIMEOUT}
231
+ - VAULT_PROXY=${VAULT_PROXY}
232
+ - SIGNING_ALGORITHM=${SIGNING_ALGORITHM}
233
+ - JWKS_URI=${JWKS_URI}
234
+ - ENABLE_AUTH=${ENABLE_AUTH}
235
+ - WEB_DID_BASE_URL=${WEB_DID_BASE_URL}
236
+ healthcheck :
237
+ test :
238
+ [ "CMD-SHELL", "curl -f http://localhost:3332/health || exit 1" ]
239
+ interval : 10s
240
+ timeout : 5s
241
+ retries : 5
242
+ credential-schema :
243
+ image : ghcr.io/sunbird-rc/sunbird-rc-credential-schema:${RELEASE_VERSION}
244
+ ports :
245
+ - " 3333:3333"
246
+ depends_on :
247
+ db :
248
+ condition : service_healthy
249
+ identity :
250
+ condition : service_healthy
251
+ environment :
252
+ - DATABASE_URL=postgres://postgres:postgres@db:5432/registry
253
+ - IDENTITY_BASE_URL=${IDENTITY_BASE_URL}
254
+ - JWKS_URI=${JWKS_URI}
255
+ - ENABLE_AUTH=${ENABLE_AUTH}
256
+ healthcheck :
257
+ test :
258
+ [ "CMD-SHELL", "curl -f http://localhost:3333/health || exit 1" ]
259
+ interval : 10s
260
+ timeout : 5s
261
+ retries : 5
262
+ credential :
263
+ image : ghcr.io/sunbird-rc/sunbird-rc-credentials-service:${RELEASE_VERSION}
264
+ ports :
265
+ - " 3000:3000"
266
+ depends_on :
267
+ db :
268
+ condition : service_healthy
269
+ identity :
270
+ condition : service_healthy
271
+ credential-schema :
272
+ condition : service_healthy
273
+ environment :
274
+ - DATABASE_URL=postgres://postgres:postgres@db:5432/registry
275
+ - IDENTITY_BASE_URL=${IDENTITY_BASE_URL}
276
+ - SCHEMA_BASE_URL=${SCHEMA_BASE_URL}
277
+ - CREDENTIAL_SERVICE_BASE_URL=${CREDENTIAL_SERVICE_BASE_URL}
278
+ - JWKS_URI=${JWKS_URI}
279
+ - ENABLE_AUTH=${ENABLE_AUTH}
280
+ healthcheck :
281
+ test :
282
+ [ "CMD-SHELL", "curl -f http://localhost:3000/health || exit 1" ]
283
+ interval : 10s
284
+ timeout : 5s
285
+ retries : 5
223
286
file-storage :
224
287
image : quay.io/minio/minio
225
288
volumes :
@@ -413,8 +476,3 @@ services:
413
476
depends_on :
414
477
db :
415
478
condition : service_healthy
416
-
417
-
418
- networks :
419
- rcw :
420
- external : true
0 commit comments