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: |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 8 | restart: |
| 9 | condition: any |
Marek Celoud | dd1e6bc | 2017-03-22 16:18:09 +0100 | [diff] [blame] | 10 | image: ${_param:docker_image_openldap} |
Filip Pytloun | a771975 | 2017-03-24 18:53:25 +0100 | [diff] [blame] | 11 | hostname: ldap01.${_param:openldap_domain} |
| 12 | hosts: |
| 13 | ldap01: |
| 14 | name: ldap01.${_param:openldap_domain} |
| 15 | address: 127.0.0.1 |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 16 | environment: |
Filip Pytloun | 7bc61fa | 2017-03-24 16:04:32 +0100 | [diff] [blame] | 17 | HOSTNAME: ldap01.${_param:openldap_domain} |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 18 | 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 Pytloun | 7bc61fa | 2017-03-24 16:04:32 +0100 | [diff] [blame] | 22 | LDAP_TLS: "false" |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 23 | ports: |
Filip Pytloun | 7bc61fa | 2017-03-24 16:04:32 +0100 | [diff] [blame] | 24 | - 1389:389 |
| 25 | - 1636:636 |
Filip Pytloun | 3a1e3d3 | 2017-02-23 15:02:54 +0100 | [diff] [blame] | 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 |