Created
December 29, 2020 21:05
-
-
Save bcarpio/d8e1d576b402ad4fa3e77c978377a35d to your computer and use it in GitHub Desktop.
Docker Compose for LDAP and PHPLDAPADMIN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
openldap: | |
image: osixia/openldap:latest | |
container_name: openldap | |
domainname: "example.org" # important: same as hostname | |
hostname: "openldap" | |
environment: | |
LDAP_LOG_LEVEL: "256" | |
LDAP_ORGANISATION: "Example Inc." | |
LDAP_DOMAIN: "example.org" | |
LDAP_BASE_DN: "" | |
LDAP_ADMIN_PASSWORD: "admin" | |
LDAP_CONFIG_PASSWORD: "config" | |
LDAP_READONLY_USER: "false" | |
LDAP_READONLY_USER_USERNAME: "readonly" | |
LDAP_READONLY_USER_PASSWORD: "readonly" | |
LDAP_RFC2307BIS_SCHEMA: "false" | |
LDAP_BACKEND: "mdb" | |
LDAP_TLS: "true" | |
LDAP_TLS_CRT_FILENAME: "ldap.crt" | |
LDAP_TLS_KEY_FILENAME: "ldap.key" | |
LDAP_TLS_CA_CRT_FILENAME: "ca.crt" | |
LDAP_TLS_ENFORCE: "false" | |
LDAP_TLS_CIPHER_SUITE: "SECURE256:-VERS-SSL3.0" | |
LDAP_TLS_PROTOCOL_MIN: "3.1" | |
LDAP_TLS_VERIFY_CLIENT: "demand" | |
LDAP_REPLICATION: "false" | |
KEEP_EXISTING_CONFIG: "false" | |
LDAP_REMOVE_CONFIG_AFTER_SETUP: "true" | |
LDAP_SSL_HELPER_PREFIX: "ldap" | |
tty: true | |
stdin_open: true | |
volumes: | |
- /var/lib/ldap | |
- /etc/ldap/slapd.d | |
- /container/service/slapd/assets/certs/ | |
ports: | |
- "389:389" | |
- "636:636" | |
phpldapadmin: | |
image: osixia/phpldapadmin:latest | |
container_name: phpldapadmin | |
environment: | |
PHPLDAPADMIN_LDAP_HOSTS: "openldap" | |
PHPLDAPADMIN_HTTPS: "false" | |
ports: | |
- "8080:80" | |
depends_on: | |
- openldap |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment