Skip to content

Commit 2dabe9b

Browse files
committed
Add healthcheck
1 parent fe119f0 commit 2dabe9b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

services/backendv4/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
elastic:
1212
condition: service_healthy
1313
ldap:
14-
condition: service_started
14+
condition: service_healthy
1515
volumes:
1616
- ./config/functionalAccounts.json:/home/node/app/functionalAccounts.json
1717
env_file:

services/ldap/docker-compose.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ services:
55
- ./config/ldifs:/ldifs:ro
66
env_file:
77
- ./config/.env
8+
healthcheck:
9+
test: ldapwhoami -H ldap://ldap:389 -D 'cn=admin,dc=facility' -w 'admin'
10+
start_period: 5s
11+
interval: 10s
12+
timeout: 10s
13+
retries: 5

0 commit comments

Comments
 (0)