openldap 容器安装
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
| version: '2'
networks: my-network: driver: bridge services: openldap: image: bitnami/openldap:2.5.14-debian-11-r6 container_name: openldap restart: always ports: - '389:1389' - '1636:1636' environment: - LDAP_ADMIN_USERNAME=admin - LDAP_ADMIN_PASSWORD=123456 - LDAP_USERS=huang - LDAP_PASSWORDS=123123 networks: - my-network volumes: - 'openldap_data:/bitnami/openldap' phpldapadmin: image: osixia/phpldapadmin container_name: phpldapadmin restart: always links: - openldap depends_on: - openldap ports: - '8081:80' environment: - PHPLDAPADMIN_HTTPS=false - PHPLDAPADMIN_LDAP_HOSTS=192.168.40.100 networks: - my-network volumes: openldap_data: driver: local
|