Added more hints for ldap

This commit is contained in:
Kevin Veen-Birkenbach 2025-01-21 12:41:44 +01:00
parent 99f9c0e3b1
commit 299510f6ec
2 changed files with 33 additions and 20 deletions

View File

@ -4,3 +4,4 @@ Draft role for an LDAP implementation with sso.
- [ChatGPT Conversation](https://chat.openai.com/share/77919994-5d44-4a64-877d-b572d67483d4) - [ChatGPT Conversation](https://chat.openai.com/share/77919994-5d44-4a64-877d-b572d67483d4)
- [Discouse Documentation](https://forum.veen.world/t/cymais-ldap-implementierung-documentation/49) - [Discouse Documentation](https://forum.veen.world/t/cymais-ldap-implementierung-documentation/49)
- [Setup Guide](https://goneuland.de/ldap-nextcloud-und-mailserver-in-docker/) - [Setup Guide](https://goneuland.de/ldap-nextcloud-und-mailserver-in-docker/)
- https://hub.docker.com/r/bitnami/openldap

View File

@ -1,24 +1,36 @@
version: '2'
networks:
my-network:
driver: bridge
services: services:
openldap: openldap:
image: osixia/openldap:1.2.4 image: bitnami/openldap:2
environment:
- LDAP_ORGANISATION=MeineFirma
- LDAP_DOMAIN=meinefirma.de
- LDAP_ADMIN_PASSWORD=admin
ports: ports:
- "389:389" - '389:1389'
- "636:636" - '636:1636'
volumes: environment:
- ./ldap:/var/lib/ldap - LDAP_ADMIN_USERNAME=admin
- ./ldap-slapd:/etc/ldap/slapd.d - LDAP_ADMIN_PASSWORD=adminpassword
- LDAP_USERS=user01,user02 # Comma separated list of LDAP users to create in the default LDAP tree. Default: user01,user02
- LDAP_PASSWORDS=password1,password2 #Comma separated list of passwords to use for LDAP users. Default: bitnami1,bitnami2
- LDAP_ROOT=dc=example,dc=org
- LDAP_ADMIN_DN=cn=admin,dc=example,dc=org
keycloak: - MARIADB_ROOT_PASSWORD=root-password
image: jboss/keycloak:latest - MARIADB_GALERA_MARIABACKUP_PASSWORD=backup-password
environment: - MARIADB_USER=customuser
- KEYCLOAK_USER=admin - MARIADB_DATABASE=customdatabase
- KEYCLOAK_PASSWORD=admin - MARIADB_ENABLE_LDAP=yes
- DB_VENDOR=h2 networks:
ports: - my-network
- "8080:8080" volumes:
depends_on: - 'openldap_data:/bitnami/openldap'
- openldap myapp:
image: 'YOUR_APPLICATION_IMAGE'
networks:
- my-network
volumes:
openldap_data:
driver: local