blob: 14e8b37b4b4bd2393d1ac6f2a3fdcb32d4d5d801 [file] [log] [blame]
Filip Pytloun7d6144a2017-04-13 13:36:45 +02001parameters:
Filip Pytloun7d6144a2017-04-13 13:36:45 +02002 docker:
3 client:
4 stack:
5 ldap:
6 service:
7 server:
Filip Pytloun78bf90c2017-05-02 12:14:06 +02008 networks:
9 - ldap
Filip Pytloun7d6144a2017-04-13 13:36:45 +020010 deploy:
11 restart_policy:
12 condition: any
13 image: ${_param:docker_image_openldap}
14 hostname: ldap01
15 domainname: ${_param:openldap_domain}
16 ports:
17 - 1389:389
18 - 1636:636
19 volumes:
20 - /srv/volumes/openldap/database:/var/lib/ldap
21 - /srv/volumes/openldap/config:/etc/ldap/slapd.d
22 environment:
23 HOSTNAME: ldap01.${_param:openldap_domain}
24 LDAP_ORGANISATION: "${_param:openldap_organisation}"
25 LDAP_DOMAIN: "${_param:openldap_domain}"
26 LDAP_ADMIN_PASSWORD: ${_param:openldap_admin_password}
27 LDAP_CONFIG_PASSWORD: ${_param:openldap_config_password}
28 LDAP_TLS: "false"
29 admin:
Filip Pytloun78bf90c2017-05-02 12:14:06 +020030 networks:
31 - ldap
Filip Pytloun7d6144a2017-04-13 13:36:45 +020032 deploy:
33 restart_policy:
34 condition: any
35 image: ${_param:docker_image_phpldapadmin}
36 depends_on:
37 - server
38 hostname: ldap
Filip Pytloun7d6144a2017-04-13 13:36:45 +020039 environment:
Filip Pytloun78bf90c2017-05-02 12:14:06 +020040 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 +020041 PHPLDAPADMIN_HTTPS: "false"
42 PHPLDAPADMIN_TRUST_PROXY_SSL: "true"
43 PHPLDAPADMIN_SERVER_ADMIN: ${_param:admin_email}
44 PHPLDAPADMIN_THEME: mirantis
45 ports:
46 - 18089:80
Filip Pytloun78bf90c2017-05-02 12:14:06 +020047 network:
48 ldap:
49 driver: overlay
50 driver_opts:
51 encrypted: 1