Working after iterations
This commit is contained in:
@@ -1,35 +1,33 @@
|
||||
version: '3.8'
|
||||
|
||||
services:
|
||||
openldap:
|
||||
image: osixia/openldap:1.5.0
|
||||
container_name: ldap-server
|
||||
hostname: ldap.testing.local
|
||||
container_name: ${LDAP_CONTAINER_NAME:-ldap-server}
|
||||
hostname: ${LDAP_HOSTNAME:-ldap.testing.local}
|
||||
environment:
|
||||
# Base domain configuration
|
||||
LDAP_ORGANISATION: "Testing Organization"
|
||||
LDAP_DOMAIN: "testing.local"
|
||||
LDAP_BASE_DN: "dc=testing,dc=local"
|
||||
LDAP_ORGANISATION: ${LDAP_ORGANISATION:-Testing Organization}
|
||||
LDAP_DOMAIN: ${LDAP_DOMAIN:-testing.local}
|
||||
LDAP_BASE_DN: ${LDAP_BASE_DN:-dc=testing,dc=local}
|
||||
|
||||
# Admin credentials (change these for production)
|
||||
LDAP_ADMIN_PASSWORD: "admin_password"
|
||||
LDAP_CONFIG_PASSWORD: "config_password"
|
||||
LDAP_ADMIN_PASSWORD: ${LDAP_ADMIN_PASSWORD:-admin_password}
|
||||
LDAP_CONFIG_PASSWORD: ${LDAP_CONFIG_PASSWORD:-config_password}
|
||||
|
||||
# SSL/TLS Configuration
|
||||
LDAP_TLS: "true"
|
||||
LDAP_TLS_CRT_FILENAME: "server.crt"
|
||||
LDAP_TLS_KEY_FILENAME: "server.key"
|
||||
LDAP_TLS_CA_CRT_FILENAME: "ca.crt"
|
||||
LDAP_TLS_VERIFY_CLIENT: "try"
|
||||
LDAP_TLS: ${LDAP_TLS:-true}
|
||||
LDAP_TLS_CRT_FILENAME: ${LDAP_TLS_CRT_FILENAME:-server.crt}
|
||||
LDAP_TLS_KEY_FILENAME: ${LDAP_TLS_KEY_FILENAME:-server.key}
|
||||
LDAP_TLS_CA_CRT_FILENAME: ${LDAP_TLS_CA_CRT_FILENAME:-ca.crt}
|
||||
LDAP_TLS_VERIFY_CLIENT: ${LDAP_TLS_VERIFY_CLIENT:-try}
|
||||
|
||||
# Logging
|
||||
LDAP_LOG_LEVEL: "256"
|
||||
LDAP_LOG_LEVEL: ${LDAP_LOG_LEVEL:-256}
|
||||
|
||||
ports:
|
||||
# Standard LDAP port
|
||||
- "389:389"
|
||||
- "${LDAP_PORT:-389}:389"
|
||||
# LDAPS (SSL) port
|
||||
- "636:636"
|
||||
- "${LDAPS_PORT:-636}:636"
|
||||
|
||||
volumes:
|
||||
# Custom certificates - place your dev-ca certs here
|
||||
@@ -52,12 +50,12 @@ services:
|
||||
# Optional: phpLDAPadmin for web-based management
|
||||
phpldapadmin:
|
||||
image: osixia/phpldapadmin:0.9.0
|
||||
container_name: ldap-admin
|
||||
container_name: ${PHPLDAPADMIN_CONTAINER_NAME:-ldap-admin}
|
||||
environment:
|
||||
PHPLDAPADMIN_LDAP_HOSTS: "openldap"
|
||||
PHPLDAPADMIN_HTTPS: "false"
|
||||
ports:
|
||||
- "8080:80"
|
||||
- "${PHPLDAPADMIN_PORT:-8080}:80"
|
||||
depends_on:
|
||||
- openldap
|
||||
networks:
|
||||
|
||||
Reference in New Issue
Block a user