Initialize the git submodules
git submodule init
Then add this gist as a submodule
git submodule add https://gist.github.com/EnoahNetzach/c8232c5de96f1da47a7d9fdfcd728373 polyfill_docker_host
Add the following to your Dockerfile
:
COPY .polyfill_docker_host.sh /.polyfill_docker_host.sh
Then use it in your docker-compose.yaml
file:
services:
service_name:
command: /bin/sh -c "/.polyfill_docker_host.sh; wget -qO- http://host.docker.internal"