Skip to content

Instantly share code, notes, and snippets.

@sgyyz
Created January 20, 2020 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgyyz/2792cba1810c884ea7f1798823afabfa to your computer and use it in GitHub Desktop.
Save sgyyz/2792cba1810c884ea7f1798823afabfa to your computer and use it in GitHub Desktop.
OpenLdap & Phpldapadmin docker-compose.yml
version: '3'
services:
openldap:
image: osixia/openldap:1.3.0
ports:
- '389:389'
- '636:636'
phpldapadmin:
image: osixia/phpldapadmin:0.9.0
depends_on:
- openldap
ports:
- '6443:443'
environment:
PHPLDAPADMIN_LDAP_HOSTS: openldap
@sgyyz
Copy link
Author

sgyyz commented Jan 20, 2020

How to run it
Copy these content into your docker-compose.yml and run docker-compose up or docker-compose up -d

Configuration
If you need other configuration, please refer to the openldap and phpldapadmin docker hub document.

Use it

  • Open your browser with https://localhost:6443 to access the PhpLdapAdmin UI
  • Login with cn=admin,dc=example,dc=org as username, and password: admin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment