From 3689ac376368d1f8484d815a3a727921ffb968f8 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 22 Dec 2023 09:11:40 +0100 Subject: [PATCH] Added Base for implementing LDAP and SSO with docker compose in later steps --- roles/docker-ldap-sso/README.md | 5 ++++ .../templates/docker-compose.yml.j2 | 26 +++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 roles/docker-ldap-sso/README.md create mode 100644 roles/docker-ldap-sso/templates/docker-compose.yml.j2 diff --git a/roles/docker-ldap-sso/README.md b/roles/docker-ldap-sso/README.md new file mode 100644 index 00000000..b64f040f --- /dev/null +++ b/roles/docker-ldap-sso/README.md @@ -0,0 +1,5 @@ +# Draft Docker LDAP and SSO +Draft role for an LDAP implementation with sso. +## See +- [ChatGPT Conversation](https://chat.openai.com/share/77919994-5d44-4a64-877d-b572d67483d4) +- [Discouse Documentation](https://forum.veen.world/t/cymais-ldap-implementierung-documentation/49) diff --git a/roles/docker-ldap-sso/templates/docker-compose.yml.j2 b/roles/docker-ldap-sso/templates/docker-compose.yml.j2 new file mode 100644 index 00000000..8a3ba194 --- /dev/null +++ b/roles/docker-ldap-sso/templates/docker-compose.yml.j2 @@ -0,0 +1,26 @@ +version: '3' + +services: + openldap: + image: osixia/openldap:1.2.4 + environment: + - LDAP_ORGANISATION=MeineFirma + - LDAP_DOMAIN=meinefirma.de + - LDAP_ADMIN_PASSWORD=admin + ports: + - "389:389" + - "636:636" + volumes: + - ./ldap:/var/lib/ldap + - ./ldap-slapd:/etc/ldap/slapd.d + + keycloak: + image: jboss/keycloak:latest + environment: + - KEYCLOAK_USER=admin + - KEYCLOAK_PASSWORD=admin + - DB_VENDOR=h2 + ports: + - "8080:8080" + depends_on: + - openldap