Connection refused when connecting to keycloak container from backend container
Your Keycloak container using the following port configuration
ports: - "8082:8080"
That mean:
Keycloak is reachable from Outside via Port 8082
.
But internally (in this docker network), keycloak is only reachable via the exposed 8080
port. So your backend application need to connect (internally) to http://keycloak:8080