Hey guys,
On a server i have multiple services which run in their own containers.
I have a forward proxy (Nginx Proxy Manager ( jc21/nginx-proxy-manager)) that also runs inside a container on the server.
When i send a ping to host.docker.internal from the NPM container, it works as I get a response. On the other side, when i want to execute a curl to a service on the host via host.docker.internal:, it doesn’t work.
The services have correctly exposed ports all via docker-compose.yml. I reach them from the host in the browser and verify they work.
I mount host.docker.internal via
extra_hosts:
- "host.docker.internal:host-gateway"
Why am I able to ping host.docker.internal from within the container but curl to a specific port on that host does not work? Any ideas?
Thanks in advance!