services: openldap: image: bitnami/openldap:latest ports: - "389:1389" # host 389 -> container 1389 - "636:1636" # host 636 -> container 1636 (LDAPS) environment: - LDAP_ROOT=dc=example,dc=com - LDAP_ADMIN_DN=cn=admin,dc=example,dc=com - LDAP_ADMIN_PASSWORD=Password1! # optional quick test users: # - LDAP_USERS=user01 # - LDAP_PASSWORDS=pass01