-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-ldap-mariadb1.yml
52 lines (52 loc) · 1.36 KB
/
docker-ldap-mariadb1.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
version: "3.5"
services:
ldap:
image: dcm4che/slapd-dcm4chee:2.6.7-33.1
deploy:
endpoint_mode: dnsrr
placement:
constraints:
- "node.hostname==node1"
ports:
- target: 389
published: 389
protocol: tcp
mode: host
environment:
LDAP_URLS: "ldap://ldap1/"
LDAP_REPLICATION_HOSTS: "ldap://ldap1/ ldap://ldap2/"
LDAP_EXTRA_HOST: "ldap1"
LDAP_EXTRA_HOST_IP_PREFIX: "172.18.0."
extra_hosts:
- "ldap2:10.101.216.76"
volumes:
- /var/local/dcm4chee-arc/ldap:/var/lib/openldap/openldap-data
- /var/local/dcm4chee-arc/slapd.d:/etc/openldap/slapd.d
mariadb:
image: mariadb:10.10.2
deploy:
endpoint_mode: dnsrr
placement:
constraints:
- "node.hostname==node1"
ports:
- target: 3306
published: 3306
protocol: tcp
mode: host
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: keycloak
MYSQL_USER: keycloak
MYSQL_PASSWORD: keycloak
command:
- "--log-bin"
- "--log-basename=node1"
- "--server-id=1"
- "--replicate-do-db=keycloak"
- "--auto_increment_increment=2"
- "--auto_increment_offset=1"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /var/local/dcm4chee-arc/mysql:/var/lib/mysql