Keycloak in docker, my spring web app not able to connect

I have keycloak running in Docker and have another container running a spring based java app that is attempting to connect to keycloak. The error message I keep getting is: Unable to resolve Configuration with the provided issuer of “http://keycloak:8080/auth/realms/someproject”. the realm name does exist in the keycloak DB. I can curl to the above URL from any other container. But the web app keeps giving me that message. Any hints would help. Thanks, Bill

Can you share your configuration so we can help debug?

Thank you for the response and offer to help. Apparently, I needed to add a bind parameter to my docker-compose:


  • " -b"

Didnt see much documentation on my particular issue anywhere on the internet. Docker is new to me and networking is like greek to me.

1 Like