first commit
This commit is contained in:
commit
1a1f0c7e3b
46
docker-compose.yml
Normal file
46
docker-compose.yml
Normal file
@ -0,0 +1,46 @@
|
|||||||
|
version: '3.7'
|
||||||
|
services:
|
||||||
|
openldap:
|
||||||
|
image: osixia/openldap:latest
|
||||||
|
container_name: openldap
|
||||||
|
hostname: openldap
|
||||||
|
ports:
|
||||||
|
- "389:389"
|
||||||
|
- "636:636"
|
||||||
|
volumes:
|
||||||
|
- ./data/certificates:/container/service/slapd/assets/certs
|
||||||
|
- ./data/slapd/database:/var/lib/ldap
|
||||||
|
- ./data/slapd/config:/etc/ldap/slapd.d
|
||||||
|
environment:
|
||||||
|
- LDAP_ORGANISATION=alibnr
|
||||||
|
- LDAP_DOMAIN=alibnr.com
|
||||||
|
- LDAP_ADMIN_USERNAME=admin
|
||||||
|
- LDAP_ADMIN_PASSWORD=admin_pass
|
||||||
|
- LDAP_CONFIG_PASSWORD=config_pass
|
||||||
|
- "LDAP_BASE_DN=dc=alibnr,dc=com"
|
||||||
|
- LDAP_TLS_CRT_FILENAME=server.crt
|
||||||
|
- LDAP_TLS_KEY_FILENAME=server.key
|
||||||
|
- LDAP_TLS_CA_CRT_FILENAME=alibnr.com.ca.crt
|
||||||
|
- LDAP_READONLY_USER=true
|
||||||
|
- LDAP_READONLY_USER_USERNAME=user-ro
|
||||||
|
- LDAP_READONLY_USER_PASSWORD=ro_pass
|
||||||
|
networks:
|
||||||
|
- openldap
|
||||||
|
|
||||||
|
phpldapadmin:
|
||||||
|
image: osixia/phpldapadmin:latest
|
||||||
|
container_name: phpldapadmin
|
||||||
|
hostname: phpldapadmin
|
||||||
|
ports:
|
||||||
|
- "80:80"
|
||||||
|
environment:
|
||||||
|
- PHPLDAPADMIN_LDAP_HOSTS=openldap
|
||||||
|
- PHPLDAPADMIN_HTTPS=false
|
||||||
|
depends_on:
|
||||||
|
- openldap
|
||||||
|
networks:
|
||||||
|
- openldap
|
||||||
|
|
||||||
|
networks:
|
||||||
|
openldap:
|
||||||
|
driver: bridge
|
Loading…
Reference in New Issue
Block a user