-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
92 lines (77 loc) · 3.22 KB
/
docker-compose.yml
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
version: '3.7'
services:
mysql:
image: mysql:5.7.20
ports:
- 3306
environment:
MYSQL_ROOT_PASSWORD: wso2carbon
volumes:
- ./mysql/scripts:/docker-entrypoint-initdb.d
healthcheck:
test: ["CMD", "mysqladmin" ,"ping", "-uroot", "-pwso2carbon"]
interval: 30s
timeout: 60s
retries: 5
# -----------------------------------new open ldap -------------------------------------------
# Refference : https://github.com/osixia/docker-openldap#quick-start
openldap:
#image: osixia/openldap:1.2.1
build:
context: .
dockerfile: ./openldap/Dockerfile
container_name: openldap
#hostname: ldap.${DOMAIN}
hostname: "openldap"
environment:
- DOMAIN=${DOMAIN}
- LDAP_LOG_LEVEL=${LDAP_LOG_LEVEL}
- LDAP_ORGANISATION=${LDAP_ORGANISATION}
- LDAP_DOMAIN=${DOMAIN}
- LDAP_BASE_DN=${LDAP_BASE_DN}
- LDAP_ADMIN_PASSWORD=${LDAP_ADMIN_PASSWORD}
- LDAP_CONFIG_PASSWORD=${LDAP_CONFIG_PASSWORD}
- LDAP_READONLY_USER=${LDAP_READONLY_USER}
- LDAP_READONLY_USER_USERNAME=${LDAP_READONLY_USER}
- LDAP_READONLY_USER_PASSWORD=${LDAP_READONLY_USER}
#LDAP_REPLICATION_CONFIG_SYNCPROV: "binddn="cn=admin,cn=config" bindmethod=simple credentials=$LDAP_CONFIG_PASSWORD searchbase="cn=config" type=refreshAndPersist retry="60 +" timeout=1 starttls=critical"
#LDAP_REPLICATION_DB_SYNCPROV: "binddn="cn=admin,$LDAP_BASE_DN" bindmethod=simple credentials=$LDAP_ADMIN_PASSWORD searchbase="$LDAP_BASE_DN" type=refreshAndPersist interval=00:00:00:10 retry="60 +" timeout=1 starttls=critical"
#LDAP_REPLICATION_HOSTS: "#PYTHON2BASH:['ldap://ldap.example.org','ldap://ldap2.example.org']"
#KEEP_EXISTING_CONFIG=${KEEP_EXISTING_CONFIG}
#LDAP_REMOVE_CONFIG_AFTER_SETUP=${LDAP_REMOVE_CONFIG_AFTER_SETUP}
#LDAP_SSL_HELPER_PREFIX=${LDAP_SSL_HELPER_PREFIX}
ports:
- "389:389"
- "636:636"
#domainname: "openldap" # important: same as hostname
#domainname: ldap.${DOMAIN} # important: same as hostname
# -----------------------------------new identity-server -------------------------------------------
identity-server:
build:
context: .
dockerfile: ./product-is/Dockerfile
# container_name: new-doc-is
ports:
- "9763:9763"
- "9443:9443"
volumes:
- ./product-is:/home/wso2carbon/wso2-server-volume
links:
- mysql
- openldap
depends_on:
- openldap
#---------------------------------phpldapadmin-------------------------------------------
# Ref : https://github.com/osixia/docker-openldap
phpldapadmin:
image: osixia/phpldapadmin:latest
container_name: phpldapadmin
hostname: phpldapadmin.${DOMAIN}
environment:
PHPLDAPADMIN_LDAP_HOSTS: "openldap"
#PHPLDAPADMIN_LDAP_HOSTS: ldap.${DOMAIN}
PHPLDAPADMIN_HTTPS: "false"
ports:
- "8888:80"
depends_on:
- openldap