Skip to content

Commit 6fa4d4a

Browse files
committed
Refs #919 Added host.docker.internal to connect to host system
1 parent 51a127d commit 6fa4d4a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This release provides the `dvl.to` domain to be used with `TLD_SUFFIX` (set to d
1212

1313
### Fixed
1414
- Intranet: mail.php fixed deprecation warnings [#798](https://github.com/cytopia/devilbox/issues/798)
15+
- Added `host.docker.internal` to extra_hosts to be able to connect to the host system [#919](https://github.com/cytopia/devilbox/issues/919)
1516

1617
### Changed
1718
- Use `dvl.to` as default `TLD_SUFFIX` (it always poits to `127.0.0.1` removing the need to create `/etc/hosts` entries)

docker-compose.yml

+2
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ services:
8989
extra_hosts:
9090
docker.for.lin.host.internal: 172.16.238.1
9191
docker.for.lin.localhost: 172.16.238.1
92+
host.docker.internal: host-gateway
9293

9394
networks:
9495
app_net:
@@ -171,6 +172,7 @@ services:
171172
extra_hosts:
172173
docker.for.lin.host.internal: 172.16.238.1
173174
docker.for.lin.localhost: 172.16.238.1
175+
host.docker.internal: host-gateway
174176

175177
networks:
176178
app_net:

0 commit comments

Comments
 (0)