---
services:
yamldap:
build:
context: .
platforms:
- linux/amd64
ports:
- "389:389"
volumes:
- ./examples/sample_directory.yaml:/data/directory.yaml:ro
environment:
- RUST_LOG=info
command:
# Optional: LDAP admin tool for testing
ldapadmin:
image: osixia/phpldapadmin:latest
environment:
- PHPLDAPADMIN_LDAP_HOSTS=yamldap
- PHPLDAPADMIN_HTTPS=false
ports:
- "8080:80"
depends_on:
- yamldap