forked from olegabu/fabric-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-ldap.yaml
48 lines (40 loc) · 1.32 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
#
# 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=${DOMAIN:-example.com}
- LDAP_ADMIN_PASSWORD=${ENROLL_SECRET}
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
command: --loglevel trace
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:
- ${LDAP_PORT_HTTPS:-6443}:443
- ${LDAP_PORT_HTTP:-6080}:80
# volumes:
# - ./data/ldap/certs:/container/service/phpldapadmin/assets/apache2/certs
depends_on:
- ldap-service
networks:
default:
external:
name: fabric-starter_default