blob: f7f12e2d3a4a8d3f6be6f2d0628e640b014b91d4 [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:
Filip Pytloun3a1e3d32017-02-23 15:02:54 +01008 restart:
9 condition: any
Marek Celouddd1e6bc2017-03-22 16:18:09 +010010 image: ${_param:docker_image_openldap}
Filip Pytlouna7719752017-03-24 18:53:25 +010011 hostname: ldap01.${_param:openldap_domain}
12 hosts:
13 ldap01:
14 name: ldap01.${_param:openldap_domain}
15 address: 127.0.0.1
Filip Pytloun3a1e3d32017-02-23 15:02:54 +010016 environment:
Filip Pytloun7bc61fa2017-03-24 16:04:32 +010017 HOSTNAME: ldap01.${_param:openldap_domain}
Filip Pytloun3a1e3d32017-02-23 15:02:54 +010018 LDAP_ORGANISATION: "${_param:openldap_organisation}"
19 LDAP_DOMAIN: "${_param:openldap_domain}"
20 LDAP_ADMIN_PASSWORD: ${_param:openldap_admin_password}
21 LDAP_CONFIG_PASSWORD: ${_param:openldap_config_password}
Filip Pytloun7bc61fa2017-03-24 16:04:32 +010022 LDAP_TLS: "false"
Filip Pytloun3a1e3d32017-02-23 15:02:54 +010023 ports:
Filip Pytloun7bc61fa2017-03-24 16:04:32 +010024 - 1389:389
25 - 1636:636
Filip Pytloun3a1e3d32017-02-23 15:02:54 +010026 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