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
- Keycloak with simple instance
- Keycloak with cluster (experimental for your understanding of how Keycloak clusters work)
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
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.
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
access http://keycloak.com.au:8180 go with "Administration Console ", then login with admin / password
Yes, the solution is ready now with help from Niko Köbler (@dasniko) with his cool video
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
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
- Check logs with Cluster events
Tidak ada komentar:
Posting Komentar