forked from dcm4che-dockerfiles/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-host-stack2.yml
80 lines (80 loc) · 2.21 KB
/
docker-host-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
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
keycloak:
image: dcm4che/keycloak:16.1.1
deploy:
placement:
constraints:
- "node.hostname==node2"
networks:
hostnet: {}
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]"
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"
- "mariadb:10.109.53.26"
volumes:
- /etc/localtime:/etc/localtime:ro
- /etc/timezone:/etc/timezone:ro
- /var/local/dcm4chee-arc/keycloak:/opt/keycloak/standalone
networks:
hostnet:
external: true
name: host