Containers & Network Requests some-api.com/ Requests from container to WWW Requires a container network GET /some-api.com/ SQL Database <Your App> Requests from container to other container Use host.docker.internal as address Requests from container to host machine Your Host Machine Creating Container Networks docker run --network my_network … Network Container 1 Container 2 Container 3 Within a Docker network, all containers can communicate with each other and IPs are automatically resolved Understanding Docker Network IP Resolving Docker will NOT replace your source code. It simply detects outgoing requests and resolves the IP for such requests Requires a container network + use container name as address GET /some-api.com/ SQL Database <Your App> Requests from container to other container Use host.docker.internal as address Requests from container to host machine Your Host Machine