Skip to content

Commit

Permalink
Change the ldap container healthcheck to check if users have been loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
markpatton committed Nov 1, 2024
1 parent 11bacbd commit be609b5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions eclipse-pass.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ services:
dsconf -D "cn=Directory Manager" localhost backend create --suffix="$$DS_SUFFIX_NAME" --be-name="pass"
ldapadd -f /pass.ldif -H ldap://localhost:3389 -w "$$DS_DM_PASSWORD" -D "cn=Directory Manager"
fg
healthcheck:
test: 'ldapsearch -H ldap://localhost:3389 -w "$$DS_DM_PASSWORD" -D "cn=Directory Manager" || exit 1'
start_period: 60s
interval: 5s
volumes:
- ./ldap/pass.ldif:/pass.ldif
networks:
Expand Down

0 comments on commit be609b5

Please sign in to comment.