23 lines
644 B
YAML
23 lines
644 B
YAML
version: '3'
|
|
|
|
services:
|
|
keycloak:
|
|
build: .
|
|
command: -Dauto-build -Dfeatures=preview
|
|
environment:
|
|
KEYCLOAK_USER: admin
|
|
KEYCLOAK_PASSWORD: secret
|
|
KEYCLOAK_ADMIN: admin
|
|
KEYCLOAK_ADMIN_PASSWORD: secret
|
|
KC_HEALTH_ENABLED: "true"
|
|
ports:
|
|
- "8080:8080"
|
|
healthcheck:
|
|
test: curl --fail --silent http://localhost:8080/health/ready 2>&1 || exit 1
|
|
interval: 10s
|
|
timeout: 10s
|
|
retries: 5
|
|
volumes:
|
|
- ./testdata/gocloak-realm.json:/opt/keycloak/data/import/gocloak-realm.json
|
|
entrypoint: ["/opt/keycloak/bin/kc.sh", "start-dev --features=preview --import-realm"]
|
|
|