-
Notifications
You must be signed in to change notification settings - Fork 89
/
Copy pathdocker-compose.yml
69 lines (61 loc) · 2.14 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
services:
# Keycloak service definition will be inherited from concrete clustering configurations.
acme-keycloak:
#image: quay.io/keycloak/keycloak:$KEYCLOAK_VERSION
# "quay.io/keycloak/keycloak:16.1.1" -> wildfly
# "quay.io/keycloak/keycloak:17.0.1" -> quarkus
# "quay.io/keycloak/keycloak:17.0.1-legacy" -> wildfly
image: quay.io/keycloak/keycloak:17.0.1-legacy
environment:
KEYCLOAK_USER: "admin"
KEYCLOAK_PASSWORD: "admin"
KEYCLOAK_THEME_CACHING: "false"
KEYCLOAK_THEME_TEMPLATE_CACHING: "false"
PROXY_ADDRESS_FORWARDING: "true"
DB_VENDOR: POSTGRES
DB_ADDR: acme-keycloak-db
DB_DATABASE: keycloak
DB_USER: keycloak
DB_PASSWORD: keycloak
DB_SCHEMA: public
# Triggers Truststore generation and dynamic TlS certificate import
X509_CA_BUNDLE: "/etc/x509/ca/*.crt"
CACHE_OWNERS_COUNT: 2
CACHE_OWNERS_AUTH_SESSIONS_COUNT: 2
JAVA_OPTS: "-XX:MaxRAMPercentage=80 -XX:+UseG1GC -XX:MaxGCPauseMillis=500 -XX:+UseStringDeduplication -Djava.net.preferIPv4Stack=true"
# depends_on:
# acme-keycloak-db:
# condition: service_healthy
volumes:
- ./cli:/opt/jboss/startup-scripts:z
# This configures the key and certificate for HTTPS.
- ../../../config/stage/dev/tls/acme.test+1.pem:/etc/x509/https/tls.crt:z
- ../../../config/stage/dev/tls/acme.test+1-key.pem:/etc/x509/https/tls.key:z
# Allow TLS connection to ourselves, this is necessary for cross realm Identity Brokering
- ../../../config/stage/dev/tls/acme.test+1.pem:/etc/x509/ca/tls.crt:z
command:
- "-b"
- "0.0.0.0"
- "-bmanagement"
- "0.0.0.0"
- "-Dwildfly.statistics-enabled=true"
ports:
- "8080"
- "9990"
- "8443"
- "8787"
acme-keycloak-db:
image: postgres:11.12
environment:
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: keycloak
POSTGRES_DB: keycloak
ports:
- "5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U keycloak"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./run/postgres/data:/var/lib/postgresql/data:z