-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose-idp.yml
57 lines (53 loc) · 1.66 KB
/
docker-compose-idp.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
version: '3'
volumes:
postgres_data:
driver: local
x-keycloak-environment: &keycloak-environment
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: password
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://postgres:5432/keycloak
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: password
KC_HOSTNAME_STRICT: false
KC_HOSTNAME_STRICT_BACKCHANNEL: false
KC_HOSTNAME_STRICT_HTTPS: true
KC_HTTP_ENABLED: true
KC_HEALTH_ENABLED: true
KC_LOG_LEVEL: com.twogenidentity.keycloak:debug,org.keycloak.authentication:debug,org.keycloak.transaction:error,org.keycloak.transaction:error,org.keycloak.transaction:error,org.hibernate:error,INFO
# KC_FEATURES: account3
KC_PROXY: edge
services:
postgres:
image: postgres:11
container_name: postgres
# volumes:
# - postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
ports:
- 5432:5432
keycloak:
image: quay.io/keycloak/keycloak:${KC_VERSION}
container_name: keycloak
command:
- start-dev
- --import-realm
environment:
<< : *keycloak-environment
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health/ready"]
interval: 5s
timeout: 2s
retries: 15
ports:
- 8080:8080
- 8443:8443
volumes:
- $PWD/keycloak/realm-export-bank.json:/opt/keycloak/data/import/realm-export-bank.json
- $PWD/keycloak/themes:/opt/keycloak/themes
- $PWD/keycloak/extensions/keycloak-webauthn-conditional-mediation.jar:/opt/keycloak/providers/keycloak-webauthn-conditional-mediation.jar
depends_on:
- postgres