host.docker.internal
which resolves to the internal IP address used by the host. This is for development purpose and will not work in a production environment outside of Docker Desktop for Windows.
You could use something like host-gateway: How to reach localhost on host from docker container? - #5 by meyay
- or run everything in containers, connect to the same docker network and use the service names.
- Or use the host network in the containers.
- or use static IP address if you know the host IP.
There are multiple potential solutions. It depends on the actual usecase