forked from olegabu/fabric-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-ldap.yaml
44 lines (36 loc) · 1.24 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
#
# 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:-bazaar.com}
image: osixia/openldap
environment:
- LDAP_ORGANISATION=${ORG:-org1}
- LDAP_DOMAIN=${DOMAIN:-bazaar.com}
- LDAP_ADMIN_PASSWORD=${ENROLL_SECRET}
volumes:
- ./data/ldap/${ORG:-org1}.${DOMAIN:-bazaar.com}/database:/var/lib/ldap
- ./data/ldap/${ORG:-org1}.${DOMAIN:-bazaar.com}/config:/etc/ldap/slapd.d
- ./data/ldap/${ORG:-org1}.${DOMAIN:-bazaar.com}/certs:/container/service/slapd/assets/certs
command: --loglevel trace
ldapadmin-service:
container_name: ldapadmin.${ORG:-org1}.${DOMAIN:-bazaar.com}
environment:
- PHPLDAPADMIN_LDAP_HOSTS=ldap.${ORG:-org1}.${DOMAIN:-bazaar.com}
- PHPLDAPADMIN_HTTPS=false
# - PHPLDAPADMIN_HTTPS_CA_CRT_FILENAME=ca.crt
image: osixia/phpldapadmin
ports:
- ${LDAP_PORT_HTTPS:-6443}:443
- ${LDAP_PORT_HTTP:-6080}:80
# volumes:
# - ./data/ldap/certs:/container/service/phpldapadmin/assets/apache2/certs
depends_on:
- ldap-service