feat: make ldap-server volumes configurable

This commit is contained in:
Dominik Schmidt
2025-07-31 17:58:46 +02:00
parent c01f0f7efb
commit 66816a3189
2 changed files with 6 additions and 2 deletions

View File

@@ -114,6 +114,9 @@ LOG_LEVEL=
# NOTE: you need to restart the openCloud container to load the new extensions. # NOTE: you need to restart the openCloud container to load the new extensions.
# OC_APPS_DIR=/your/local/opencloud/apps # OC_APPS_DIR=/your/local/opencloud/apps
# If you're using an external IdP and don't want to use standard docker volumes for ldap-server, you can define local paths here
# LDAP_CERTS_DIR=
# LDAP_DATA_DIR=
# S3 Storage configuration - optional # S3 Storage configuration - optional
# OpenCloud supports S3 storage as primary storage. # OpenCloud supports S3 storage as primary storage.

View File

@@ -66,12 +66,13 @@ services:
# Use the custom schema from opencloud because we are in full control of the ldap server # Use the custom schema from opencloud because we are in full control of the ldap server
- ./config/ldap/schemas/10_opencloud_schema.ldif:/schemas/10_opencloud_schema.ldif - ./config/ldap/schemas/10_opencloud_schema.ldif:/schemas/10_opencloud_schema.ldif
- ./config/ldap/docker-entrypoint-override.sh:/opt/bitnami/scripts/openldap/docker-entrypoint-override.sh - ./config/ldap/docker-entrypoint-override.sh:/opt/bitnami/scripts/openldap/docker-entrypoint-override.sh
- ldap-certs:/opt/bitnami/openldap/share - ${LDAP_CERTS_DIR:-ldap-certs}:/opt/bitnami/openldap/share
- ldap-data:/bitnami/openldap - ${LDAP_DATA_DIR:-ldap-data}:/bitnami/openldap
keycloak: keycloak:
volumes: volumes:
- "./config/keycloak/docker-entrypoint-override.sh:/opt/keycloak/bin/docker-entrypoint-override.sh" - "./config/keycloak/docker-entrypoint-override.sh:/opt/keycloak/bin/docker-entrypoint-override.sh"
- "./config/keycloak/opencloud-realm-autoprovisioning.dist.json:/opt/keycloak/data/import-dist/opencloud-realm.json" - "./config/keycloak/opencloud-realm-autoprovisioning.dist.json:/opt/keycloak/data/import-dist/opencloud-realm.json"
volumes: volumes:
ldap-certs: ldap-certs:
ldap-data: ldap-data: