Rabu, 25 September 2024

OTP-keycloak ubuntu24 ok

https://github.com/ozbillwang/keycloak-compose/blob/master/README.md#keycloak-single-instance-with-docker-compose-up-and-running-inseconds 

Run keycloak and postgresql with docker compose by two scenarios

This repo is mainly set for my blogs

Run Keycloak in docker with extenal DB

Run Keycloak locally with Docker compose

Keycloak Cluster with Docker Compose — Up and Running in Seconds

Keycloak Backup and Restore

Keycloak (single instance) with Docker Compose - Up and Running in Seconds

Prerequisite

Step 1

update /etc/hosts , add below lines

# keycloak
127.0.0.1 keycloak.com.au

On Windows, the file path is usually: c:\Windows\System32\Drivers\etc\hosts

Notes: In many online documents and videos, Keycloak experts often recommend starting the Keycloak service on localhost with a specific port. However, this practice is not advisable, especially when working in a real environment. Instead, it’s more practical to configure Keycloak with a DNS-ready setup. This also allows you to test HTTPS access with SSL certifications later on if needed.

Step 2

git clone https://github.com/ozbillwang/keycloak-compose.git
cd keycloak-compose
docker compose up -d
docker ps -a

make sure all containers running well

Step 3

access http://keycloak.com.au:8180 go with "Administration Console ", then login with admin / password

image

Keycloak Cluster with Docker Compose - Up and Running in Seconds

Yes, the solution is ready now with help from Niko Köbler (@dasniko) with his cool video

Step 1

update /etc/hosts , add below lines

# keycloak
127.0.0.1 keycloak.com.au

On Windows, the file path is usually: c:\Windows\System32\Drivers\etc\hosts

Step 2

git clone https://github.com/ozbillwang/keycloak-compose.git
cd keycloak-compose
docker compose -f docker-compose-cluster.yml up -d
  • Check the health
docker ps -a

image

  • Check logs with Cluster events

Tidak ada komentar:

Posting Komentar