blob: a5fe135f7b2831f5bee12f8563869c029272ecf3 [file] [log] [blame]
Filip Pytloun7d6144a2017-04-13 13:36:45 +02001parameters:
2 _param:
3 docker_image_openldap: osixia/openldap:1.1.8
4 docker_image_phpldapadmin: tcpcloud/phpldapadmin:0.6.12
5 docker:
6 client:
7 stack:
8 ldap:
9 service:
10 server:
Filip Pytloun78bf90c2017-05-02 12:14:06 +020011 networks:
12 - ldap
Filip Pytloun7d6144a2017-04-13 13:36:45 +020013 deploy:
14 restart_policy:
15 condition: any
16 image: ${_param:docker_image_openldap}
17 hostname: ldap01
18 domainname: ${_param:openldap_domain}
19 ports:
20 - 1389:389
21 - 1636:636
22 volumes:
23 - /srv/volumes/openldap/database:/var/lib/ldap
24 - /srv/volumes/openldap/config:/etc/ldap/slapd.d
25 environment:
26 HOSTNAME: ldap01.${_param:openldap_domain}
27 LDAP_ORGANISATION: "${_param:openldap_organisation}"
28 LDAP_DOMAIN: "${_param:openldap_domain}"
29 LDAP_ADMIN_PASSWORD: ${_param:openldap_admin_password}
30 LDAP_CONFIG_PASSWORD: ${_param:openldap_config_password}
31 LDAP_TLS: "false"
32 admin:
Filip Pytloun78bf90c2017-05-02 12:14:06 +020033 networks:
34 - ldap
Filip Pytloun7d6144a2017-04-13 13:36:45 +020035 deploy:
36 restart_policy:
37 condition: any
38 image: ${_param:docker_image_phpldapadmin}
39 depends_on:
40 - server
41 hostname: ldap
Filip Pytloun7d6144a2017-04-13 13:36:45 +020042 environment:
Filip Pytloun78bf90c2017-05-02 12:14:06 +020043 PHPLDAPADMIN_LDAP_HOSTS: "#PYTHON2BASH:[{'server': [{'server': [{'tls': False}]},{'login': [{'bind_id': 'cn=admin,${_param:openldap_dn}'},{'bind_pass': '${_param:openldap_admin_password}'}]}]}]"
Filip Pytloun7d6144a2017-04-13 13:36:45 +020044 PHPLDAPADMIN_HTTPS: "false"
45 PHPLDAPADMIN_TRUST_PROXY_SSL: "true"
46 PHPLDAPADMIN_SERVER_ADMIN: ${_param:admin_email}
47 PHPLDAPADMIN_THEME: mirantis
48 ports:
49 - 18089:80
Filip Pytloun78bf90c2017-05-02 12:14:06 +020050 network:
51 ldap:
52 driver: overlay
53 driver_opts:
54 encrypted: 1