I have a simple docker-compose like so:
I mapped in a local folder in which I made a copy of the keycloak template contained in the default jar and started working on it. Somehow, I’m not in a situation where the specific REALM I’m in, is not obeying any theme settings. Realm wide or to a given client. Text changes in message properties are picked up. But images, css, etc - no.
Even weirder, I compeltely removed the mapping (and double checked by entering the container and seeing /opt/keycloak/themes empty) and removed cache just to be sure. And the effect still continues, leading me to believe something other than the …/themes folder is broke as the container has nothing in it anymore
Anyone with a tip?
version: '3.4'
services:
keycloak_db:
image: postgres:11.2-alpine
environment:
- POSTGRES_DB=keycloak
- POSTGRES_USER=keycloak
- POSTGRES_PASSWORD=keycloak
- POSTGRES_ROOT_PASSWORD=keycloak
networks:
transit_idp:
volumes:
- ./data:/var/lib/postgresql/data
user: 1000:1000
keycloak:
image: keycloak/keycloak:23.0
hostname: keycloak
environment:
- KC_DB=postgres
- KC_DB_PORT=5432
- KC_DB_URL_HOST=keycloak_db
- KC_DB_URL_DATABASE=keycloak
- KC_DB_USERNAME=keycloak
- KC_DB_PASSWORD=keycloak
- PROXY_ADDRESS_FORWARDING=true
- KEYCLOAK_LOGLEVEL=INFO
- KEYCLOAK_ADMIN=admin
- KEYCLOAK_ADMIN_PASSWORD=changeme-keycloak
ports:
- 8080:8080
- 8180:8180
- 8443:8443
depends_on:
- keycloak_db
volumes:
- ./keycloak-themes:/opt/keycloak/themes