This service is used for images that need basic ldap functionallity but with the postfix-book schema. The image is compatible with for example the tvial/docker-mailserver image. Dockerhub autobuilds a new image when the ldap source is updated so we stay up to date when there are changes.
docker pull jsmitsnl/docker-openldap-postfix-book:latest
version: '2.1'
# Services
services:
ldap:
restart: always
image: jsmitsnl/docker-openldap-postfix-book:latest
hostname: ldap
domainname: domain.com
container_name: ldap
volumes:
- ./data:/var/lib/ldap
- ./slapd.d:/etc/ldap/slapd.d
environment:
- LDAP_ORGANISATION=company
- LDAP_DOMAIN=domain.com
- LDAP_ADMIN_PASSWORD=password
- LDAP_LOG_LEVEL=-1