This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdocker-stack2.yml
101 lines (101 loc) · 2.72 KB
/
docker-stack2.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
93
94
95
96
97
98
99
100
101
version: "3.5"
services:
ldap:
image: dcm4che/slapd-dcm4chee:2.6.0-25.2
deploy:
endpoint_mode: dnsrr
placement:
constraints:
- "node.hostname==node2"
ports:
- target: 389
published: 389
protocol: tcp
mode: host
environment:
LDAP_URLS: "ldap://ldap2/"
LDAP_REPLICATION_HOSTS: "ldap://ldap1/ ldap://ldap2/"
LDAP_EXTRA_HOST: "ldap2"
LDAP_EXTRA_HOST_IP_PREFIX: "172.18.0."
SKIP_INIT_CONFIG: "true"
extra_hosts:
- "ldap1:10.109.53.228"
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
keycloak:
image: dcm4che/keycloak:16.1.1
deploy:
endpoint_mode: dnsrr
placement:
constraints:
- "node.hostname==node2"
ports:
- target: 8880
published: 8880
protocol: tcp
mode: host
- target: 8843
published: 8843
protocol: tcp
mode: host
- target: 8990
published: 8990
protocol: tcp
mode: host
- target: 8993
published: 8993
protocol: tcp
mode: host
- target: 7600
published: 7600
protocol: tcp
mode: host
environment:
DB_VENDOR: mysql
KEYCLOAK_DB_CONNECTION_URL: jdbc:mysql://mariadb:3306/keycloak
JGROUPS_DISCOVERY_EXTERNAL_IP: 10.109.53.26
JGROUPS_DISCOVERY_INITIAL_HOSTS: "10.109.53.228[7600],10.109.53.26[7600]"
JGROUPS_BIND_IP_PREFIX: "172.18.0."
HTTP_PORT: 8880
HTTPS_PORT: 8843
MANAGEMENT_HTTP_PORT: 8990
MANAGEMENT_HTTPS_PORT: 8993
KEYCLOAK_WAIT_FOR: ldap:389 mariadb:3306
LDAP_URL: ldap://ldap:389
extra_hosts:
- "ldap:10.109.53.26"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /var/local/dcm4chee-arc/keycloak:/opt/keycloak/standalone