version: '2' networks: my-network: driver: bridge services: openldap: image: bitnami/openldap:2 ports: - '389:1389' - '636:1636' environment: - LDAP_ADMIN_USERNAME=admin - LDAP_ADMIN_PASSWORD=adminpassword - LDAP_USERS=user01,user02 # Comma separated list of LDAP users to create in the default LDAP tree. Default: user01,user02 - LDAP_PASSWORDS=password1,password2 #Comma separated list of passwords to use for LDAP users. Default: bitnami1,bitnami2 - LDAP_ROOT=dc=example,dc=org - LDAP_ADMIN_DN=cn=admin,dc=example,dc=org - MARIADB_ROOT_PASSWORD=root-password - MARIADB_GALERA_MARIABACKUP_PASSWORD=backup-password - MARIADB_USER=customuser - MARIADB_DATABASE=customdatabase - MARIADB_ENABLE_LDAP=yes networks: - my-network volumes: - 'openldap_data:/bitnami/openldap' myapp: image: 'YOUR_APPLICATION_IMAGE' networks: - my-network volumes: openldap_data: driver: local