From 92f56edb771e9e91b7a6c590f46ae2dac1919033 Mon Sep 17 00:00:00 2001 From: Beau Hastings Date: Fri, 7 May 2021 10:46:05 +0800 Subject: [PATCH] use standardized host.docker.internal for docker host Fixes #2966 where current versions of laradock containers are already making DNS requests to host.docker.internal which resolving NXDOMAIN when it should resolve. See https://github.com/docker/for-linux/issues/264 https://github.com/moby/moby/pull/40007 https://docs.docker.com/engine/release-notes/#networking-2 for docker-engine 20.10 Signed-off-by: Beau Hastings --- docker-compose.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f0d828cea5..879026356c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -178,7 +178,7 @@ services: - docker-in-docker:/certs/client - ./php-worker/supervisord.d:/etc/supervisord.d extra_hosts: - - "dockerhost:${DOCKER_HOST_IP}" + - "host.docker.internal:${DOCKER_HOST_IP}" ports: - "${WORKSPACE_SSH_PORT}:22" - "${WORKSPACE_BROWSERSYNC_HOST_PORT}:3000" @@ -288,7 +288,7 @@ services: expose: - "9000" extra_hosts: - - "dockerhost:${DOCKER_HOST_IP}" + - "host.docker.internal:${DOCKER_HOST_IP}" environment: - PHP_IDE_CONFIG=${PHP_IDE_CONFIG} - DOCKER_HOST=tcp://docker-in-docker:2376 @@ -346,7 +346,7 @@ services: depends_on: - workspace extra_hosts: - - "dockerhost:${DOCKER_HOST_IP}" + - "host.docker.internal:${DOCKER_HOST_IP}" networks: - backend ### Laravel Horizon ############################################ @@ -382,7 +382,7 @@ services: depends_on: - workspace extra_hosts: - - "dockerhost:${DOCKER_HOST_IP}" + - "host.docker.internal:${DOCKER_HOST_IP}" networks: - backend @@ -1346,7 +1346,7 @@ services: - ${DATA_PATH_HOST}/portainer_data:/data - /var/run/docker.sock:/var/run/docker.sock extra_hosts: - - "dockerhost:${DOCKER_HOST_IP}" + - "host.docker.internal:${DOCKER_HOST_IP}" ports: - 9010:9000 networks: