keycloak_installation_on_windows_and_linux
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| keycloak_installation_on_windows_and_linux [2026/01/24 09:18] – [Install Docker Desktop (Windows)] pradnya | keycloak_installation_on_windows_and_linux [2026/01/24 09:29] (current) – [Prerequisites (Common for Both)] pradnya | ||
|---|---|---|---|
| Line 10: | Line 10: | ||
| |Port 8080 free|✅| | |Port 8080 free|✅| | ||
| - | ====== Keycloak Installation on | + | Recommended Folder Structure (Both OS) |
| + | < | ||
| + | |||
| + | iam/ | ||
| + | ├─ keycloak/ | ||
| + | │ | ||
| + | │ | ||
| + | │ | ||
| + | └─ scripts/ | ||
| + | | ||
| + | |||
| + | </ | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | ====== Keycloak Installation on Windows ====== | ||
| ===== Install Docker Desktop (Windows) ===== | ===== Install Docker Desktop (Windows) ===== | ||
| Line 19: | Line 36: | ||
| * Enable **Hyper-V** | * Enable **Hyper-V** | ||
| - | 2. Restart system | + | 3. Restart system |
| - | 3. Verify: | + | 4. Verify: |
| < | < | ||
| docker --version | docker --version | ||
| docker compose 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/ | ||
| + | |||
| + | </ | ||
| + | |||
| + | 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/ | ||
| + | start-dev | ||
| + | |||
| + | </ | ||
| + | |||
| + | Access Keycloak | ||
| + | |||
| + | < | ||
| + | http:// | ||
| + | |||
| + | </ | ||
| + | |||
| + | Login: | ||
| + | |||
| + | < | ||
| + | username: admin | ||
| + | password: admin | ||
| </ | </ | ||
keycloak_installation_on_windows_and_linux.1769246301.txt.gz · Last modified: by pradnya
