2020-07-15 15:07:54 +05:30
|
|
|
version: "3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
ldap:
|
|
|
|
image: osixia/openldap:1.4.0
|
|
|
|
# Copying is required because the entrypoint modifies the *.ldif files.
|
2020-07-15 15:13:28 +05:30
|
|
|
# For verbose output, use: command: ["--copy-service", "--loglevel", "debug"]
|
2020-07-15 15:07:54 +05:30
|
|
|
command: ["--copy-service"]
|
|
|
|
# https://github.com/osixia/docker-openldap#seed-ldap-database-with-ldif
|
2020-07-15 15:13:28 +05:30
|
|
|
# Option 1: Add custom seed file -> mount to /container/service/slapd/assets/config/bootstrap/ldif/custom/
|
|
|
|
# Option 2: Overwrite default seed file -> mount to /container/service/slapd/assets/config/bootstrap/ldif/
|
|
|
|
volumes:
|
2020-07-15 15:07:54 +05:30
|
|
|
- ./config-ldap.ldif:/container/service/slapd/assets/config/bootstrap/ldif/custom/config-ldap.ldif
|
|
|
|
ports:
|
|
|
|
- 389:389
|
|
|
|
- 636:636
|