I know how to deploy custom KeyCloak theme in Windows using both ways as stated here:
Copy-paste theme in themes directory
Using archive deploy
Can someone please suggest how to do this in docker?
This is what I did:
Created Dockerfile like below
FROM jboss/keycloak COPY ./themes/<yourThemeName>/ /opt/jboss/keycloak/themes/<yourThemeName>/
Built new docker image from this file
docker build -t <yourDockerHubUserName>/keycloak .
Run this docker image
docker container run --name <someContainerName> -p 8080:8080 -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=password <yourDockerHubUserName>/keycloak
Check if new theme shows up by logging into admin console at
http://localhost:8080/auth and go to realms/themes click drop down list of themes and you should see <yourThemeName>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With