blob: 863144c616897271351e000cf3f8de86e7c5ad19 [file] [log] [blame]
Filip Pytloun3a1e3d32017-02-23 15:02:54 +01001parameters:
Marek Celouddd1e6bc2017-03-22 16:18:09 +01002 _param:
Filip Pytloun7bc61fa2017-03-24 16:04:32 +01003 docker_image_openldap: osixia/openldap:1.1.8
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 Pytlouna7719752017-03-24 18:53:25 +010013 hostname: ldap01.${_param:openldap_domain}
14 hosts:
15 ldap01:
16 name: ldap01.${_param:openldap_domain}
17 address: 127.0.0.1
Filip Pytloun3a1e3d32017-02-23 15:02:54 +010018 environment:
Filip Pytloun7bc61fa2017-03-24 16:04:32 +010019 HOSTNAME: ldap01.${_param:openldap_domain}
Filip Pytloun3a1e3d32017-02-23 15:02:54 +010020 LDAP_ORGANISATION: "${_param:openldap_organisation}"
21 LDAP_DOMAIN: "${_param:openldap_domain}"
22 LDAP_ADMIN_PASSWORD: ${_param:openldap_admin_password}
23 LDAP_CONFIG_PASSWORD: ${_param:openldap_config_password}
Filip Pytloun7bc61fa2017-03-24 16:04:32 +010024 LDAP_READONLY_USER: "true"
Filip Pytloun3a1e3d32017-02-23 15:02:54 +010025 LDAP_READONLY_USER_USERNAME: readonly
26 LDAP_READONLY_USER_PASSWORD: ${_param:openldap_readonly_password}
Filip Pytloun7bc61fa2017-03-24 16:04:32 +010027 LDAP_TLS: "false"
Filip Pytloun3a1e3d32017-02-23 15:02:54 +010028 ports:
Filip Pytloun7bc61fa2017-03-24 16:04:32 +010029 - 1389:389
30 - 1636:636
Filip Pytloun3a1e3d32017-02-23 15:02:54 +010031 volume:
32 database:
33 type: bind
34 source: /srv/volumes/openldap/database
35 destination: /var/lib/ldap
36 config:
37 type: bind
38 source: /srv/volumes/openldap/config
39 destination: /etc/ldap/slapd.d