-
Notifications
You must be signed in to change notification settings - Fork 2
/
ldap-isolate-org.yaml
executable file
·46 lines (39 loc) · 1.27 KB
/
ldap-isolate-org.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
#
# 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
environment:
- LDAP_ORGANISATION=${ORG:-org1}
- LDAP_DOMAIN=${ORG:-org1}.${DOMAIN:-example.com}
- LDAP_ADMIN_PASSWORD=${ENROLL_SECRET}
volumes:
- ./data/ldap/${ORG:-org1}/database:/var/lib/ldap
- ./data/ldap/${ORG:-org1}/config:/etc/ldap/slapd.d
- ./data/ldap/${ORG:-org1}/certs:/container/service/slapd/assets/certs
ldapadmin-service:
container_name: ldapadmin.${ORG:-org1}.${DOMAIN:-example.com}
environment:
- PHPLDAPADMIN_LDAP_HOSTS=ldap.${ORG:-org1}.${DOMAIN:-example.com}
- PHPLDAPADMIN_HTTPS=false
# - PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME=ca.crt
image: osixia/phpldapadmin
ports:
- ${LDAPADMIN_HTTPS_PORT:-6443}:443
- ${LDAPADMIN_HTTP_PORT:-6080}:80
# volumes:
# - ./data/ldap/certs:/container/service/phpldapadmin/assets/apache2/certs
depends_on:
- ldap-service
networks:
default:
external:
name: ${DEFAULT_NETWORK_NAME:-fabric-starter}_default