phpldapadmin/docker-compose.yml

29 lines
820 B
YAML

services:
phpldapadmin:
image: osixia/phpldapadmin:latest
restart: 'unless-stopped'
container_name: phpldapadmin
command: --copy-service
environment:
PHPLDAPADMIN_LDAP_HOSTS: "openldap"
PHPLDAPADMIN_HTTPS: false
PHPLDAPADMIN_TRUST_PROXY_SSL: true
volumes:
- data:/var/www/phpldapadmin
- ./templates:/var/www/phpldapadmin/templates
- ./config.php:/container/service/phpldapadmin/assets/config/config.php:ro
networks:
- traefik-public
labels:
traefik.enable: true
traefik.http.routers.phpldapadmin.rule: Host(`ldap.alice.ufsj.edu.br`)
traefik.http.routers.phpldapadmin.entrypoints: websecure
traefik.http.services.phpldapadmin.loadBalancer.server.port: 80
volumes:
data:
networks:
traefik-public:
external: true