-
Notifications
You must be signed in to change notification settings - Fork 22
/
docker-compose.yml
63 lines (61 loc) · 1.77 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
version: '3'
volumes:
cockroach_data:
driver: local
caddy_data:
driver: local
services:
cockroach:
image: cockroachdb/cockroach:latest
volumes:
- cockroach_data:/cockroach/cockroach-data
command: start-single-node --insecure
ports:
- 26257:26257
keycloak:
build: .
environment:
KC_DB: cockroach
KC_HTTP_RELATIVE_PATH: /auth
PROXY_ADDRESS_FORWARDING: 'true'
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
KC_CACHE_CONFIG_FILE: cache-ispn-jdbc-ping.xml
KC_DB_PASSWORD: ''
KC_DB_SCHEMA: public
KC_DB_URL_DATABASE: defaultdb
KC_DB_URL_HOST: cockroach
KC_DB_URL_PORT: 26257
KC_DB_URL_PROPERTIES: '?sslmode=disable&useCockroachMetadata=true'
KC_DB_USERNAME: root
KC_FEATURES: persistent-user-sessions
KC_HEALTH_ENABLED: true
KC_HOSTNAME_STRICT: 'false'
KC_HTTP_ENABLED: 'true'
KC_HTTP_MANAGEMENT_PORT: 9000
KC_ISPN_DB_VENDOR: cockroachdb
KC_LOG_LEVEL: "INFO,io.phasetwo:DEBUG"
KC_METRICS_ENABLED: true
KC_PROXY: 'edge'
KC_TRANSACTION_JTA_ENABLED: 'false'
KC_TRANSACTION_XA_ENABLED: 'false'
ports:
- 9000:9000
- 8080:8080
- 8443:8443
depends_on:
- cockroach
entrypoint: /opt/keycloak/bin/kc.sh --verbose start --spi-email-template-provider=freemarker-plus-mustache --spi-email-template-freemarker-plus-mustache-enabled=true --spi-theme-cache-themes=false
caddy:
image: caddy:2.4.6-alpine
restart: unless-stopped
command: caddy reverse-proxy --from https://localhost:443 --to http://keycloak:8080
ports:
- 80:80
- 443:443
volumes:
- caddy_data:/data
depends_on:
- keycloak