Files
docker-compose/openldap/docker-compose.yml
2023-09-14 19:11:40 +02:00

38 lines
1.1 KiB
YAML

version: '2'
services:
openldap:
image: bitnami/openldap:latest
ports:
- '1389:1389'
- '1636:1636'
environment:
- LDAP_SKIP_DEFAULT_TREE=yes
- LDAP_ROOT=dc=sectorq,dc=eu
- LDAP_ADMIN_USERNAME=admin
- LDAP_ADMIN_PASSWORD=/run/secrets/ldap_admin_password
- LDAP_USERS=test
- LDAP_PASSWORDS=q
- LDAP_GROUP=group
- LDAP_USER_DC=people
#- LDAP_CUSTOM_LDIF_DIR=/ldifs
- LDAP_CONFIG_ADMIN_ENABLED=yes
- LDAP_CONFIG_ADMIN_USERNAME=admin
- LDAP_CONFIG_ADMIN_PASSWORD=/run/secrets/ldap_config_password
#- LDAP_CUSTOM_SCHEMA_FILE=/custom/00-custom.ldif
#- LDAP_ENABLE_TLS
secrets:
- ldap_config_password
- ldap_admin_password
volumes:
- '/share/docker_data/openldap/data:/bitnami/openldap'
- '/share/docker_data/openldap/ldifs:/ldifs'
- '/share/docker_data/openldap/custom:/custom'
network_mode: bridge
secrets:
ldap_config_password:
file: "openldap/.env/ldap_config_password"
ldap_admin_password:
file: "openldap/.env/ldap_admin_password"