2020-06-29 12:55:27 +00:00
|
|
|
version: '2.3'
|
|
|
|
|
|
|
|
services:
|
|
|
|
openldap:
|
|
|
|
image: osixia/openldap:1.4.0
|
|
|
|
command: "--copy-service --loglevel debug"
|
|
|
|
environment:
|
|
|
|
LDAP_ORGANIZATION: "company"
|
|
|
|
LDAP_DOMAIN: "company.com"
|
|
|
|
LDAP_ADMIN_PASSWORD: "admin"
|
|
|
|
LDAP_TLS: "false"
|
|
|
|
expose:
|
|
|
|
- "389"
|
|
|
|
- "636"
|
|
|
|
healthcheck:
|
2020-08-03 23:19:22 +00:00
|
|
|
test: ldapsearch -x -H ldap://localhost:$${LDAP_PORT:-389} -b "dc=company,dc=com" -D "cn=admin,dc=company,dc=com" -w admin
|
2020-08-15 23:52:27 +00:00
|
|
|
interval: 10s
|
2020-08-03 23:19:22 +00:00
|
|
|
timeout: 10s
|
2020-08-15 23:52:27 +00:00
|
|
|
retries: 3
|
|
|
|
start_period: 300s
|
2020-06-29 12:55:27 +00:00
|
|
|
security_opt:
|
|
|
|
- label:disable
|
|
|
|
|
|
|
|
|
|
|
|
phpldapadmin:
|
|
|
|
image: osixia/phpldapadmin:0.9.0
|
|
|
|
container_name: phpldapadmin
|
|
|
|
environment:
|
|
|
|
PHPLDAPADMIN_HTTPS=false:
|
|
|
|
ports:
|
|
|
|
- "8080:80"
|
|
|
|
healthcheck:
|
|
|
|
test: echo 1
|
2020-08-15 23:52:27 +00:00
|
|
|
interval: 10s
|
2020-08-15 18:24:33 +00:00
|
|
|
timeout: 10s
|
2020-08-15 23:52:27 +00:00
|
|
|
retries: 3
|
|
|
|
start_period: 300s
|
2020-06-29 12:55:27 +00:00
|
|
|
security_opt:
|
|
|
|
- label:disable
|
|
|
|
|