From d59ec55999742f8243fb0aa555d7059a169df2b6 Mon Sep 17 00:00:00 2001 From: Tim Basten Date: Fri, 6 Mar 2026 04:02:18 +0000 Subject: [PATCH] Remove persistent LDAP volumes so bootstrap.ldif always applies on startup The osixia/openldap image only runs bootstrap LDIF when the database is empty. Named volumes (sail-ldap-data, sail-ldap-config) caused changes to bootstrap.ldif to be ignored after the first run. Removing these volumes ensures the test LDAP directory is always seeded fresh from the bootstrap file on each sail up. --- compose.yaml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/compose.yaml b/compose.yaml index df82c4b..d740c85 100644 --- a/compose.yaml +++ b/compose.yaml @@ -97,8 +97,6 @@ services: LDAP_READONLY_USER_USERNAME: '${LDAP_READONLY_USERNAME:-readonly}' LDAP_READONLY_USER_PASSWORD: '${LDAP_READONLY_PASSWORD:-readonly}' volumes: - - 'sail-ldap-data:/var/lib/ldap' - - 'sail-ldap-config:/etc/ldap/slapd.d' - './docker/openldap/bootstrap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/bootstrap.ldif' networks: - sail @@ -136,7 +134,3 @@ volumes: driver: local sail-redis: driver: local - sail-ldap-data: - driver: local - sail-ldap-config: - driver: local