keycloak_installation_on_windows_and_linux
Table of Contents
Keycloak Docker-based installation - windows and linux
Prerequisites (Common for Both)
Before Keycloak:
| Tool | Required |
|---|---|
| Docker | ✅ |
| Docker Compose (optional) | ✅ |
| Port 8080 free | ✅ |
Recommended Folder Structure (Both OS)
iam/ ├─ keycloak/ │ ├─ docker-compose.yml │ ├─ realm-export.json │ └─ themes/ └─ scripts/ └─ user-import/
Keycloak Installation on Windows
Install Docker Desktop (Windows)
- Download Docker Desktop:https://www.docker.com/products/docker-desktop/
- During installation:
- Enable WSL 2
- Enable Hyper-V (if asked)
3. Restart system
4. Verify:
docker --version docker compose version
Keycloak Installation on Linux (Ubuntu / RHEL / Amazon Linux)
Install Docker
ubuntu
sudo apt update sudo apt install -y docker.io sudo systemctl start docker sudo systemctl enable docker
Pull Keycloak Image
docker pull quay.io/keycloak/keycloak:24.0.1
Verify:
docker images
Run Keycloak (Development Mode)
docker run -d ^ --name keycloak ^ -p 8080:8080 ^ -e KEYCLOAK_ADMIN=admin ^ -e KEYCLOAK_ADMIN_PASSWORD=admin ^ quay.io/keycloak/keycloak:24.0.1 ^ start-dev
Access Keycloak
http://localhost:8080
Login:
username: admin password: admin
keycloak_installation_on_windows_and_linux.txt · Last modified: by pradnya
