blob: e390772993ae0584fa3fa756d34a1a65bf4c1013 [file] [log] [blame]
Filip Pytloun3a1e3d32017-02-23 15:02:54 +01001parameters:
Marek Celouddd1e6bc2017-03-22 16:18:09 +01002 _param:
3 docker_image_openldap: osixia/openldap:1.1.7
Filip Pytloun3a1e3d32017-02-23 15:02:54 +01004 docker:
5 client:
6 service:
7 openldap:
8 # XXX: docker service is not able to set hostname
9 # https://github.com/docker/docker/issues/24877
10 restart:
11 condition: any
Marek Celouddd1e6bc2017-03-22 16:18:09 +010012 image: ${_param:docker_image_openldap}
Filip Pytloun3a1e3d32017-02-23 15:02:54 +010013 environment:
14 HOSTNAME: ldap01.${_param:cluster_public_host}
15 LDAP_ORGANISATION: "${_param:openldap_organisation}"
16 LDAP_DOMAIN: "${_param:openldap_domain}"
17 LDAP_ADMIN_PASSWORD: ${_param:openldap_admin_password}
18 LDAP_CONFIG_PASSWORD: ${_param:openldap_config_password}
19 LDAP_READONLY_USER: true
20 LDAP_READONLY_USER_USERNAME: readonly
21 LDAP_READONLY_USER_PASSWORD: ${_param:openldap_readonly_password}
22 LDAP_TLS: false
23 ports:
24 - 389:389
25 - 636:636
26 volume:
27 database:
28 type: bind
29 source: /srv/volumes/openldap/database
30 destination: /var/lib/ldap
31 config:
32 type: bind
33 source: /srv/volumes/openldap/config
34 destination: /etc/ldap/slapd.d