forked from dcm4che-dockerfiles/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-host-ldap-mariadb2.yml
54 lines (54 loc) · 1.4 KB
/
docker-host-ldap-mariadb2.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
version: "3.5"
services:
ldap:
image: dcm4che/slapd-dcm4chee:2.6.0-25.2
deploy:
placement:
constraints:
- "node.hostname==node2"
networks:
hostnet: {}
environment:
LDAP_URLS: "ldap://ldap2/"
LDAP_REPLICATION_HOSTS: "ldap://ldap1/ ldap://ldap2/"
SKIP_INIT_CONFIG: "true"
extra_hosts:
- "ldap1:10.109.53.228"
- "ldap2:10.109.53.26"
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.7.1
deploy:
endpoint_mode: dnsrr
placement:
constraints:
- "node.hostname==node2"
ports:
- target: 3306
published: 3306
protocol: tcp
mode: host
environment:
MYSQL_ROOT_PASSWORD: secret
MYSQL_DATABASE: keycloak
MYSQL_USER: keycloak
MYSQL_PASSWORD: keycloak
command:
- "--character-set-server=latin1"
- "--collation-server=latin1_swedish_ci"
- "--log-bin"
- "--log-basename=node2"
- "--server-id=2"
- "--replicate-do-db=keycloak"
- "--auto_increment_increment=2"
- "--auto_increment_offset=2"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /var/local/dcm4chee-arc/mysql:/var/lib/mysql
networks:
hostnet:
external: true
name: host