even better healthcheck for ldap

This commit is contained in:
Andrey Zvonov 2024-08-02 10:35:32 +00:00
parent 9d0ff1ba6c
commit 064c0eb958

View File

@ -19,6 +19,7 @@ services:
ldapsearch -x -H ldap://localhost:$$LDAP_PORT_NUMBER -D $$LDAP_ADMIN_DN -w $$LDAP_ADMIN_PASSWORD -b $$LDAP_ROOT
| grep -c -E "member: cn=j(ohn|ane)doe"
| grep 2 >> /dev/null
&& cat /run/slapd/slapd.pid
interval: 10s
retries: 10
timeout: 2s