1
0
Fork 0

openldap: add

This commit is contained in:
Lukáš Kucharczyk 2023-12-05 12:11:14 +01:00
parent 8f3069776d
commit c311fa2798
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
2 changed files with 27 additions and 0 deletions

View File

@ -13,6 +13,7 @@ include:
- services/postgres.yml
- services/nextcloud.yml
- services/sabnzbd.yml
- services/openldap.yml
services:

26
services/openldap.yml Normal file
View File

@ -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