From 28e0bd6e06fff127d5bd60258e7f61c229bdfc78 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sun, 30 Jun 2019 15:25:18 +0300 Subject: [PATCH] slapd ldapi socket. - Specify the `/run/slapd` volume in the Dockerfile. - Document TCP ports and Unix socket for slapd. --- slapd/Dockerfile | 1 + slapd/README.md | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/slapd/Dockerfile b/slapd/Dockerfile index 7c7e9ea..2ed2b02 100644 --- a/slapd/Dockerfile +++ b/slapd/Dockerfile @@ -11,6 +11,7 @@ RUN echo 'deb http://deb.debian.org/debian stretch-backports main' > /etc/apt/so COPY --chown=root:root entrypoint / EXPOSE 389 636 VOLUME [ "/var/lib/ldap" ] +VOLUME [ "/run/ldap" ] ENV LDAP_URLS="ldap:/// ldapi:/// ldaps:///" \ SLAPD_DEBUG_LEVEL="NONE" ENTRYPOINT [ "/entrypoint" ] diff --git a/slapd/README.md b/slapd/README.md index 326c49f..f67a189 100644 --- a/slapd/README.md +++ b/slapd/README.md @@ -2,6 +2,11 @@ > Dockerized OpenLDAP daemon. +## Interfaces exposed + +The container exposes TCP ports 389 (LDAP) and 636 (LDAPS) as well as the +`ldapi` Unix socket in the `/run/slapd` volume. + ## Environment variables Name | Description | Default value -- GitLab