From ae30dbc1e6955c19bf8219eb8d23f6475ca09a4c Mon Sep 17 00:00:00 2001 From: Schuhmacher Date: Mon, 31 Mar 2025 13:55:46 +0200 Subject: [PATCH] add docker ldap --- dev-compose.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/dev-compose.yml b/dev-compose.yml index 6aaf4d8..7ff9bc1 100644 --- a/dev-compose.yml +++ b/dev-compose.yml @@ -22,6 +22,28 @@ services: volumes: - redis:/data + openldap: + image: osixia/openldap:latest + container_name: openldap + restart: unless-stopped + environment: + LDAP_ORGANISATION: "Schule" + LDAP_DOMAIN: "Schule.intern" + LDAP_ADMIN_PASSWORD: ${LDAP_ADMIN_PASSWORD} + ports: + - "389:389" + - "636:636" + volumes: + - openldap_data:/var/lib/ldap + - openldap_config:/etc/ldap/slapd.d + healthcheck: + test: ["CMD", "ldapsearch", "-x", "-H", "ldap://localhost", "-b", "dc=Schule,dc=intern"] + interval: 30s + retries: 3 + + volumes: postgres_data: redis: + openldap_data: + openldap_config: \ No newline at end of file