docker部署openldap+phpldapadmin+self-password-service
docker-compose部署openldap服务组
编辑docker-compose.yaml
部署openldap服务
version: "3"
services:
openldap:
image: osixia/openldap:1.5.0
container_name: openldap
restart: always
environment:
LDAP_ORGANISATION: "youkun" #自定义组织名
LDAP_DOMAIN: "youkun.com" #自定域
LDAP_ADMIN_PASSWORD: "1qaz2WSX"
tty: true
stdin_open: true
volumes:
- /data/openldap/ldap:/var/lib/ldap
- /data/openldap/slapd.d:/etc/ldap/slapd.d
- /data/openldap/certs:/container/service/lapd/assets/certs
ports:
- "389:389"
- "636:636"
domainname: "youkun.com"
hostname: "ldap-server"
部署phpldapadmin
version: "3"
services:
phpldapadmin:
image: osixia/phpldapadmin:latest
container_name: phpldapadmin
restart: always
environment:
PHPLDAPADMIN_LDAP_HOSTS: "openldap"
PHPLDAPADMIN_HTTPS: "false"
ports:
- "888:80"
depends_on:
- openldap
部署self-password-service
version: "3"
services:
self-service-password:
container_name: self-service-password
image: tiredofit/self-service-password:latest
restart: always
ports:
- 8096:80
environment:
- LDAP_SERVER=ldap://192.168.5.134:389
- LDAP_BINDDN=cn=admin,dc=youkun,dc=com
- LDAP_BINDPASS=1qaz2WSX
- LDAP_BASE_SEARCH=dc=youkun,dc=com
- MAIL_FROM=xxxxxx@sina.com
- SMTP_DEBUG=0
- SMTP_HOST=smtp.sina.com
- SMTP_USER=xxxxxx@sina.com
- SMTP_PASS=xxxxxx
- SMTP_PORT=465
- SMTP_SECURE_TYPE=ssl
- SMTP_AUTH_ON=true
volumes:
- /etc/localtime:/etc/localtime
- /data/openldap/self-service-password/htdocs:/www/ssp
- /data/openldap/self-service-password/logs:/www/logs
在docker-compose.yaml文件目录中
docker-compose up -d启动容器。
版权声明:
本站所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自
知识武装灵魂!
喜欢就支持一下吧