Docker active-passive Keycloak set up

Does anyone have a working example of active passive Keycloak with postgres backend. Deployment is done via docker.

I’ve managed to get postgres to work using Practical PostgreSQL Logical Replication: Setting Up an Experimentation Environment Using Docker - DEV Community but I have got to fully test it.

It generally involves me having to restart the postgres image after manually doing config changes. I am sure it is simpler than that.

Thanks.

Anyone got a reply to this

The best guides for this type of setup are currently here Guides - Keycloak

They do not have “docker” examples, but you can probably build it based on what they are doing in Kubernetes.