Docker Compose extra_hosts: host-gateway & examples
Reference for extra_hosts in Docker Compose. Map host-gateway to reach host.docker.internal on Linux, mock DNS, use IPv6, and fix common errors.
Reference for extra_hosts in Docker Compose. Map host-gateway to reach host.docker.internal on Linux, mock DNS, use IPv6, and fix common errors.
How port mapping works in Docker Compose — ports vs expose, host:container syntax, binding to an interface, ranges, and why your port isn't reachable.
Understand Docker's host networking mode, when to use --network host, and how to access local services using host.docker.internal on Linux, Mac, and Windows.