1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-14 11:23:02 +02:00
dockerfiles/openldap/docker-compose.yml

45 lines
1.2 KiB
YAML
Raw Normal View History

2019-09-24 22:24:54 +02:00
version: "3.7"
2018-10-30 09:56:55 +02:00
2019-09-24 22:24:54 +02:00
services:
openldap:
image: osixia/openldap
command: "--loglevel debug"
hostname: ldap.easypi.pro
ports:
- "389:389"
- "636:636"
volumes:
- ./data/certs:/container/service/slapd/assets/certs
- ./data/etc:/etc/ldap/slapd.d
- ./data/var:/var/lib/ldap
- ./data/run:/container/run
environment:
- LDAP_ORGANISATION=EasyPi
- LDAP_DOMAIN=ldap.easypi.pro
- LDAP_ADMIN_PASSWORD=admin
- LDAP_CONFIG_PASSWORD=config
- LDAP_TLS=true
- LDAP_TLS_CA_CRT_FILENAME=ca.crt
- LDAP_TLS_CRT_FILENAME=ldap.crt
- LDAP_TLS_KEY_FILENAME=ldap.key
- LDAP_TLS_VERIFY_CLIENT=try
- LDAP_TLS_ENFORCE=true
restart: always
phpldapadmin:
image: osixia/phpldapadmin
2019-09-27 03:29:09 +02:00
command: "--loglevel debug"
2019-09-24 22:24:54 +02:00
ports:
- "8080:80"
environment:
2019-09-27 03:29:09 +02:00
# PHPLDAPADMIN_LDAP_HOSTS=#PYTHON2BASH:[{'ldap.easypi.pro':[{'server':[{'tls':True}]}]}]
- PHPLDAPADMIN_LDAP_HOSTS=ldaps://ldap.easypi.pro/
2019-09-24 22:24:54 +02:00
- PHPLDAPADMIN_HTTPS=false
2019-09-27 03:29:09 +02:00
- PHPLDAPADMIN_TRUST_PROXY_SSL=true
2019-09-24 22:24:54 +02:00
extra_hosts:
- ldap.easypi.pro:x.x.x.x
depends_on:
- openldap
restart: always