-
Notifications
You must be signed in to change notification settings - Fork 184
/
docker-compose-ldap.yaml
50 lines (43 loc) · 1.7 KB
/
docker-compose-ldap.yaml
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
42
43
44
45
46
47
48
49
#
# Copyright . All Rights Reserved.
#
version: '3.7'
services:
# ca:
# command: sh -c 'fabric-ca-server start -d --ca.name default'
# api:
# environment:
# - ENROLL_ID=cn=${ENROLL_ID},${LDAP_BASE_DN}
ldap-service:
container_name: ldap.${ORG:-org1}.${DOMAIN:-example.com}
image: osixia/openldap
restart: always
environment:
- LDAP_ORGANISATION=${ORG:-org1}
- LDAP_DOMAIN=${DOMAIN:-example.com}
- LDAP_ADMIN_PASSWORD=${ENROLL_SECRET:-adminpw}
volumes:
- ./data/ldap/${ORG:-org1}.${DOMAIN:-example.com}/database:/var/lib/ldap
- ./data/ldap/${ORG:-org1}.${DOMAIN:-example.com}/config:/etc/ldap/slapd.d
- ./data/ldap/${ORG:-org1}.${DOMAIN:-example.com}/certs:/container/service/slapd/assets/certs
- ${FABRIC_STARTER_HOME:-.}/crypto-config/ldap:/etc/hyperledger/crypto-config/ldap
command: --loglevel trace
ldapadmin:
container_name: ldapadmin.${ORG:-org1}.${DOMAIN:-example.com}
restart: always
environment:
- PHPLDAPADMIN_LDAP_HOSTS=ldap.${ORG:-org1}.${DOMAIN:-example.com}
- PHPLDAPADMIN_HTTPS=${LDAPADMIN_HTTPS:-false}
- PHPLDAPADMIN_HTTPS_CRT_FILENAME=${LDAPADMIN_HTTPS_CRT_FILENAME:-public.crt}
- PHPLDAPADMIN_HTTPS_KEY_FILENAME=${LDAPADMIN_HTTPS_KEY_FILENAME:-private.key}
# - PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME=${LDAPADMIN_HTTPS_CA_CRT_FILENAME:-ca.crt}
image: osixia/phpldapadmin
ports:
- ${LDAP_PORT_HTTPS:-6443}:443
# - ${LDAP_PORT_HTTP:-6080}:80
volumes:
- ${SSL_CERTS_ROOT_PATH:-./https/certs/}${ORG:-org1}.${DOMAIN:-example.com}:/container/service/phpldapadmin/assets/apache2/certs
depends_on:
- ldap-service
# - www.peer
command: --loglevel debug