From c311fa2798221d086b28c91db7b31ec2ef982efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 5 Dec 2023 12:11:14 +0100 Subject: [PATCH] openldap: add --- docker-compose.yml | 1 + services/openldap.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 services/openldap.yml diff --git a/docker-compose.yml b/docker-compose.yml index 0f75e31..5fd3623 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -13,6 +13,7 @@ include: - services/postgres.yml - services/nextcloud.yml - services/sabnzbd.yml + - services/openldap.yml services: diff --git a/services/openldap.yml b/services/openldap.yml new file mode 100644 index 0000000..8aa9c13 --- /dev/null +++ b/services/openldap.yml @@ -0,0 +1,26 @@ +--- +services: + openldap: + image: osixia/openldap:latest + container_name: openldap + networks: + public: + ipv4_address: 192.168.240.42 + ports: + - 389:389 + - 636:636 + volumes: + - "${DOCKER_STORAGE_PATH}/openldap/config:/etc/ldap/slapd.d" + - "${DOCKER_STORAGE_PATH}/openldap/data:/var/lib/ldap" + environment: + - LDAP_ORGANISATION=Homelab + - LDAP_DOMAIN=${DOMAIN} + - LDAP_ADMIN_PASSWORD=kral + - LDAP_OPENLDAP_UID=${PUID} + - LDAP_OPENLDAP_GID=${PGID} + - LDAP_READONLY_USER=true + - LDAP_READONLY_USER_USERNAME=readonly + - LDAP_READONLY_USER_PASSWORD=readonly + profiles: + - base + restart: unless-stopped