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