Search code examples
dockerdockerfilekeycloakkeycloak-services

How to build a Keycloak custom docker image with disabled ssl for AWS?


I want to build a custom docker image(new to docker) where SSL is disabled by default for AWS environment as we know Keycloak admin console allows only https by default for all external IP addresses.

I am aware of the below code snippet that disables it manually.

docker exec -it {contaierID} bash cd /opt/jboss/keycloak/bin ./kcadm.sh config credentials --server http://localhost:8080/auth --realm master --user admin --password admin ./kcadm.sh update realms/master -s sslRequired=NONE

I basically want to automate these above command in my custom keycloak docker image.


Solution

  • Finally I was able to connect to admin console after I passed below configuration as environmental parameter to the docker image. KEYCLOAK_FRONTEND_URL=https://host/auth