# Scenario C: directory swap — OpenLDAP replaces LLDAP, Keycloak replaces KeyCape. # # The LDIF and realm JSON are produced by scripts/test-scenario-c.sh before this # stack starts. OpenLDAP imports any LDIF mounted into its bootstrap directory. services: openldap: image: bitnami/openldap:2.6 environment: - LDAP_ROOT=dc=netkingdom,dc=local - LDAP_ADMIN_USERNAME=admin - LDAP_ADMIN_PASSWORD=adminpassword - LDAP_SKIP_DEFAULT_TREE=yes - LDAP_CUSTOM_LDIF_DIR=/ldifs volumes: - ./build/scenario-c/ldif:/ldifs:ro ports: - "1389:1389" keycloak: image: quay.io/keycloak/keycloak:26.0 command: ["start-dev", "--import-realm"] environment: - KC_BOOTSTRAP_ADMIN_USERNAME=admin - KC_BOOTSTRAP_ADMIN_PASSWORD=admin - KC_HEALTH_ENABLED=true volumes: - ./build/scenario-c/realm:/opt/keycloak/data/import:ro ports: - "8080:8080" depends_on: - openldap