-
-
Notifications
You must be signed in to change notification settings - Fork 105
Expand file tree
/
Copy pathdocker-compose.oidc.yml
More file actions
34 lines (33 loc) · 1.24 KB
/
docker-compose.oidc.yml
File metadata and controls
34 lines (33 loc) · 1.24 KB
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
services:
# Local OIDC provider for development (Keycloak).
#
# Usage:
# docker compose -f docker-compose.oidc.yml up -d
#
# Keycloak Admin UI:
# http://localhost:8080/admin
keycloak:
# Pin the default image for reproducible local dev.
# Override if needed: `export KEYCLOAK_IMAGE=quay.io/keycloak/keycloak:<version>`
image: ${KEYCLOAK_IMAGE:-quay.io/keycloak/keycloak:24.0.5}
command: ["start-dev", "--import-realm"]
environment:
- KEYCLOAK_ADMIN=${KEYCLOAK_ADMIN:-admin}
- KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_ADMIN_PASSWORD:?set KEYCLOAK_ADMIN_PASSWORD in your shell or .env (do not commit it)}
# Browser-facing hostname for local development.
- KC_HOSTNAME=localhost
# Allow backend backchannel endpoints (token/jwks) to use internal request host.
- KC_HOSTNAME_BACKCHANNEL_DYNAMIC=true
- KC_HOSTNAME_STRICT=false
ports:
- "8080:8080"
volumes:
- ./oidc/keycloak/realm-excalidash.json:/opt/keycloak/data/import/realm-excalidash.json:ro,Z
networks:
- excalidash-network
restart: unless-stopped
networks:
excalidash-network:
# Reuse the app network so backend can resolve "keycloak" directly.
name: excalidash_excalidash-network
external: true