Don't build a new container for ldap, pass the variables via docker-compose.

pull/64/head
FrozenDragoon 2017-08-08 09:03:51 -05:00 committed by FrozenDragoon
parent 85834befb6
commit fa6134e7f5
2 changed files with 9 additions and 10 deletions

View File

@ -1,9 +0,0 @@
FROM clems4ever/openldap
ENV SLAPD_ORGANISATION=MyCompany
ENV SLAPD_DOMAIN=example.com
ENV SLAPD_PASSWORD=password
ENV SLAPD_CONFIG_PASSWORD=password
ENV SLAPD_ADDITIONAL_MODULES=memberof
ENV SLAPD_ADDITIONAL_SCHEMAS=openldap
ENV SLAPD_FORCE_RECONFIGURE=true

View File

@ -1,7 +1,15 @@
version: '2' version: '2'
services: services:
openldap: openldap:
build: ./example/ldap image: clems4ever/openldap
environment:
- SLAPD_ORGANISATION=MyCompany
- SLAPD_DOMAIN=example.com
- SLAPD_PASSWORD=password
- SLAPD_CONFIG_PASSWORD=password
- SLAPD_ADDITIONAL_MODULES=memberof
- SLAPD_ADDITIONAL_SCHEMAS=openldap
- SLAPD_FORCE_RECONFIGURE=true
volumes: volumes:
- ./example/ldap/base.ldif:/etc/ldap.dist/prepopulate/base.ldif - ./example/ldap/base.ldif:/etc/ldap.dist/prepopulate/base.ldif
- ./example/ldap/access.rules:/etc/ldap.dist/prepopulate/access.rules - ./example/ldap/access.rules:/etc/ldap.dist/prepopulate/access.rules