From 6fa4d4a3867410bfcb971eeb67b74c46e4c59be5 Mon Sep 17 00:00:00 2001 From: cytopia Date: Mon, 2 Jan 2023 12:40:17 +0100 Subject: [PATCH] Refs #919 Added host.docker.internal to connect to host system --- CHANGELOG.md | 1 + docker-compose.yml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 28e18bfd..4d9d8de8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ This release provides the `dvl.to` domain to be used with `TLD_SUFFIX` (set to d ### Fixed - Intranet: mail.php fixed deprecation warnings [#798](https://github.com/cytopia/devilbox/issues/798) +- Added `host.docker.internal` to extra_hosts to be able to connect to the host system [#919](https://github.com/cytopia/devilbox/issues/919) ### Changed - Use `dvl.to` as default `TLD_SUFFIX` (it always poits to `127.0.0.1` removing the need to create `/etc/hosts` entries) diff --git a/docker-compose.yml b/docker-compose.yml index 09049302..0f73eb24 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -89,6 +89,7 @@ services: extra_hosts: docker.for.lin.host.internal: 172.16.238.1 docker.for.lin.localhost: 172.16.238.1 + host.docker.internal: host-gateway networks: app_net: @@ -171,6 +172,7 @@ services: extra_hosts: docker.for.lin.host.internal: 172.16.238.1 docker.for.lin.localhost: 172.16.238.1 + host.docker.internal: host-gateway networks: app_net: