It works fine when the postgresql database is not connected.But when I configure postgresql, I can get to the keycloak home page, but when I click on the admin console, it goes blank and keeps loading in this page.
https://sso.dora.im/admin/master/console/
This is my docker-compose.yml
version: '3'
services:
keycloak:
image: quay.io/keycloak/keycloak:latest
command: start-dev --proxy passthrough
environment:
KC_DB: postgres
KC_DB_URL: jdbc:postgresql://***:5432/keycloak?sslmode=require
KC_HOSTNAME: ***
KC_DB_USERNAME: keycloak
KC_DB_PASSWORD: keycloak_password
DB_SCHEMA: public
KEYCLOAK_ADMIN: ***
KEYCLOAK_ADMIN_PASSWORD: ***
env_file: .env
container_name: ${SERVER}
hostname: ${HOST}
labels:
- traefik.http.routers.${SERVER}.rule=Host(`${HOST}`)
- traefik.http.routers.${SERVER}.tls=true
- traefik.http.routers.${SERVER}.tls.certresolver=le
- traefik.http.services.${SERVER}.loadbalancer.server.port=${PORT}
networks:
traefik:
aliases:
- ${SERVER}
networks:
traefik:
external: true
After initializing the postgresql database,it started.When I check the docker log, it has no error.