I followed this Guide to setup headscale with caddy. And tried to add Keycloak with this guide from the same guy.
Sadly my docker containers do not seem to be able to connect to the keycloak server. What happens is that if i try to download the openid configuration from the host (via wget) or from my local PC it just works. But the headscale server gets a timeout when trying to connect to the endpoint. When i use the internal docker name to connect to the keycloak container the connection works fine but then i get an error because its not the external url.
I experimented a bit and managed to reproduce the issue with a different container (running an ubuntu container and also getting a timeout when trying to download the config from keycloak). If i run the container with the host network i works just fine.
Does anyone know how to fix this?
PS: i also tried the example from the guide with gitea an its also the same problem
But the network is created externally, so shouldn’t this be the same?
deleted by creator
I didn’t read the docker files with attention in the first time, but since you have an external network it should work.
yes is the same, or at least should.