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: |
| 3 | docker_image_openldap: osixia/openldap:1.1.7 |
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 | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 13 | 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 |