Run Keycloak in docker with extenal DB

Introduction:

Keycloak is a popular open-source identity and access management solution that provides robust authentication and authorization services.

Problems

Outdated Keycloak Image “jboss/keycloak” Docker image has not received updates in the past year, resulting in potential security vulnerabilities and missing out on new features. To overcome this issue, we need to switch to a more up-to-date image. An alternative image provided by Keycloak as official image “quay.io/keycloak/keycloak” should be used, ensuring we have the latest version of Keycloak.

Challenges

Insufficient Documentation for Database Integration. Keycloak’s documentation lacks detailed instructions on integrating with external databases, such as Postgres, in a proper and efficient manner. This creates confusion and makes it difficult for users to set up Keycloak with their preferred database solution.

Read More