Running from a docker compose file
keycloak:
image: jboss/keycloak
container_name: keycloak
restart: always
environment:
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: admin
ports:
- "8080:8080"
Works for me where "works" means if I create a realm called wibble (redirect urls *) and a user called user1, when I go to http://localhost:8080/auth/realms/wibble/account I get a login prompt.
On doing the same thing for quay.io, the same url gives a "We are sorry, page not found" response
keycloak:
image: quay.io/keycloak/keycloak:latest
command: start-dev
restart: always
environment:
KEYCLOAK_ADMIN: admin
KEYCLOAK_ADMIN_PASSWORD: admin
ports:
- 8080:8080
Also with the quay.io keycloak http://localhost:8080/ redirects to http://localhost:8080/auth/ which also give the same "We are sorry, page not found" response but going to http://localhost:8080/admin gives a login prompt.
Am I right in thinking that the quay.io keycloak is the later more supported one? And if so, does anyone have any ideas what on earth is going on with that simple docker compose file?
The
jboss/keycloakno more update. It's last version published 2 years ago by jboss.org.The lasted version is 16.1.1 It is no more update and support. Please refrain from using it.
The
quay.io/keycloak/keycloakorkeycloak/keycloakis correct image for Keycloak.The
quay.io/keycloak/keycloakdirectly a docker hub serve by RedHatThe
keycloak/keycloakservice form official docker hub by Keycloak communityAm I right in thinking that the quay.io keycloak is the later more supported one? Yes you are on track.
API URL
Old version URL It has
/authafterhost IP:portUp to version V18.(19.0.3-legacy,19.0.2-legacy, 19.0.1-legacy, 19.0.0-legacy, 18.0.2-legacy too)
New version URL It has no more
/authafterhost IP:portSince Version V19http://localhost:8080/auth/We are sorry... IssueI have no idea how to fix it. But I have a workaround method.
This URL can access the admin login screen.
Simple docker compose
anyone have any ideas what on earth is going on with that simple docker compose file?
Keycloak community no update for
docker-composesince 2 years ago. It support external database but old version V18If you want to support external database and latest Keycloak. You can use bitnami's docker-compose
This is Version 23.0.6's docker compose with Postgres database