Posts tagged "compose":

03 Jan 2022

Accessing the host from inside a Docker container

To give the container access to a service running on the the host add extra_hosts to its definition in the Compose file:

    - "host.docker.internal:host-gateway"

Then it's possible to access it as host.docker.internal. Just don't forget to bind the service on the host to something else than

Tags: compose docker
Other posts