skycloak/locke

By skycloak

Updated 12 days ago

Drop-in Keycloak distribution that can run its caches on Redis instead of Infinispan. Apache 2.0.

Image
Security
0

1.0K

skycloak/locke repository overview

Locke

A drop-in Keycloak distribution that can run its caches on Redis instead of embedded Infinispan. Same admin console, same database, same SPIs. You pick the cache backend at boot with one environment variable. When you don't pick Redis, Locke is the Keycloak it was built from, unchanged.

Keycloak gives you the key. Locke gives you the choice.

Quick start

Both backends ship in the same image. Choose with one variable.

# Default: embedded Infinispan, identical to upstream Keycloak
docker run --rm -p 8080:8080 \
  -e KC_BOOTSTRAP_ADMIN_USERNAME=admin -e KC_BOOTSTRAP_ADMIN_PASSWORD=admin \
  skycloak/locke:26.6.2-2 start-dev

# Redis backend: point it at any Redis / Valkey / wire-compatible store
docker run --rm -p 8080:8080 \
  -e KC_CACHE=redis -e KC_CACHE_REDIS_URL=redis://my-redis:6379 \
  -e KC_BOOTSTRAP_ADMIN_USERNAME=admin -e KC_BOOTSTRAP_ADMIN_PASSWORD=admin \
  skycloak/locke:26.6.2-2 start-dev

Configuration

OptionDefaultPurpose
KC_CACHEinfinispanCache backend: infinispan or redis
KC_CACHE_REDIS_URL(none)Redis connection URL (required when KC_CACHE=redis)

Every other Keycloak option works exactly as upstream.

Tags & versioning

Locke uses composite versioning: <keycloak-version>-<locke-build>. 26.6.2-2 means "Keycloak 26.6.2, Locke build 2." The latest build on each line carries the current Redis client fixes.

TagBuilt from KeycloakStatus
26.6.2-226.6.2current
26.6.1-226.6.1maintained
26.3.5-326.3.5maintained

latest tracks the current line. Images are multi-arch: linux/amd64 and linux/arm64.

Also published to ghcr.io/sky-cloak/locke and quay.io/skycloak/locke.

Run managed

Don't want to operate this yourself? Skycloak runs managed Keycloak (and Locke) for you.

Tag summary

Content type

Image

Digest

sha256:a6f9f4e95

Size

262.1 MB

Last updated

12 days ago

docker pull skycloak/locke