Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 1 | parameters: |
Marek Celoud | dd1e6bc | 2017-03-22 16:18:09 +0100 | [diff] [blame] | 2 | _param: |
Filip Pytloun | 7bc61fa | 2017-03-24 16:04:32 +0100 | [diff] [blame] | 3 | docker_image_openldap: osixia/openldap:1.1.8 |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 4 | 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 Celoud | dd1e6bc | 2017-03-22 16:18:09 +0100 | [diff] [blame] | 12 | image: ${_param:docker_image_openldap} |
Filip Pytloun | a771975 | 2017-03-24 18:53:25 +0100 | [diff] [blame^] | 13 | hostname: ldap01.${_param:openldap_domain} |
| 14 | hosts: |
| 15 | ldap01: |
| 16 | name: ldap01.${_param:openldap_domain} |
| 17 | address: 127.0.0.1 |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 18 | environment: |
Filip Pytloun | 7bc61fa | 2017-03-24 16:04:32 +0100 | [diff] [blame] | 19 | HOSTNAME: ldap01.${_param:openldap_domain} |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 20 | 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 Pytloun | 7bc61fa | 2017-03-24 16:04:32 +0100 | [diff] [blame] | 24 | LDAP_READONLY_USER: "true" |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 25 | LDAP_READONLY_USER_USERNAME: readonly |
| 26 | LDAP_READONLY_USER_PASSWORD: ${_param:openldap_readonly_password} |
Filip Pytloun | 7bc61fa | 2017-03-24 16:04:32 +0100 | [diff] [blame] | 27 | LDAP_TLS: "false" |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 28 | ports: |
Filip Pytloun | 7bc61fa | 2017-03-24 16:04:32 +0100 | [diff] [blame] | 29 | - 1389:389 |
| 30 | - 1636:636 |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 31 | 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 |