This repository provides pre-configured Docker Compose files to set up GitLab and OpenLDAP in a way that allows GitLab to fetch users stored in OpenLDAP. It offers two different configurations: one that uses Keycloak as an intermediary between GitLab and OpenLDAP, and another that establishes a direct connection between GitLab and OpenLDAP. Everything is set up to be launched with a single command.
To launch the services without Keycloak, run the following command:
$ docker compose -f dc-no-keycloak.yaml up -d
To launch the services with Keycloak as an intermediary, run the following command:
$ docker compose -f dc-with-keycloak.yaml up -d
URLs
OpenLDAP url (unsecure): ldap://localhost:1389
Keycloak url: http://localhost:8080
GitLab url: http://localhost
Credentials
OpenLDAP admin credentials: cn=admin,dc=example,dc=org
/ secret
Keycloak admin credentials: admin
/ secret
- Direct Connection: Provides a Docker Compose configuration for a direct connection between GitLab and OpenLDAP.
- Keycloak Intermediary: Provides an alternative Docker Compose configuration that uses Keycloak as an intermediary between GitLab and OpenLDAP.
- Pre-configured: No additional setup required. Just run the Docker Compose command to get everything up and running.
- Docker
- Docker Compose
Both Docker Compose files are pre-configured, so no additional setup is required. However, you can customize the configurations as per your requirements.
Feel free to submit issues and enhancement requests.
MIT License. See LICENSE for more information.