Skip to content

Instantly share code, notes, and snippets.

View dopic's full-sized avatar
🐌
Running fast, very fast.

Douglas Picolotto dopic

🐌
Running fast, very fast.
View GitHub Profile
@dopic
dopic / _keycloak-cluster-config.md
Created October 6, 2022 12:08 — forked from dasniko/_keycloak-cluster-config.md
How to configure a Keycloak cluster properly (Quarkus edition)

Keycloak Cluster Configuration (How to)

This is a short and simple example on how to build a proper Keycloak cluster, using DNS_PING as discovery protocol and an NGINX server as reverse proxy.

To get it working properly, just enable Docker Swarm mode with docker swarm init and just run it as it were a regular Docker Compose deployment. So, just docker compose up is enough, don't deploy a swarm stack! (This would cause trouble and extra complexity with networking)
Afterwards, you can disable Swarm again with docker swarm leave -f, if needed.