services: ldap: image:osixia/openldap restart:always environment: -LDAP_ORGANISATION=ChaosInc. # if LDAP_DOMAIN=chaos.io, the login DN will be "cn=admin,dc=chaos,dc=io" # LDAP_DOMAIN default value is "example.org" # so default login DN is "cn=admin,dc=example,dc=org" -LDAP_DOMAIN=chaos.io -LDAP_ADMIN_PASSWORD=secret volumes: -ldap:/var/lib/ldap -slapd:/etc/ldap/slapd.d networks: -traefik-net
ldapadmin: image:osixia/phpldapadmin restart:always environment: -PHPLDAPADMIN_LDAP_HOSTS=ldap # if configure https by traefik, you need to configure the following two lines # if not, remove them -VIRTUAL_HOST=ldap.x.internal -PHPLDAPADMIN_HTTPS=false networks: -traefik-net volumes: ldap: slapd:
networks: traefik-net: external:true
ldap.yml in dir dynamic-conf
You should touch ldap.yml in traefik dir dynamic-conf.
For much more information, please reference the Prerequisite.