Bläddra i källkod

Remove host.docker.internal hostname from extra_hosts to get Xdebug working on Mac #595

Mark Shust 3 år sedan
förälder
incheckning
4efef7ac2c
2 ändrade filer med 1 tillägg och 2 borttagningar
  1. 1 1
      README.md
  2. 0 1
      compose/docker-compose.yml

+ 1 - 1
README.md

@@ -452,7 +452,7 @@ Copy `docker-compose.dev-linux.yml` to `docker-compose.dev.yml` before installin
 
 The `host.docker.internal` hostname is used on Docker for Mac/Windows to reference the Docker daemon. On Linux, this hostname does not exist.
 
-This hostname is [hard-coded in the php.ini file](https://github.com/markshust/docker-magento/blob/master/images/php/7.4/conf/php.ini#L8). To make this hostname resolve, within the `extra_hosts` param of `docker-compose.dev.yml` replace `172.17.0.1` with the result of:
+This hostname is [hard-coded in the php.ini file](https://github.com/markshust/docker-magento/blob/master/images/php/7.4/conf/php.ini#L8). To make this hostname resolve, add `"host.docker.internal:172.17.0.1"` to the `app.extra_hosts` parameter of `docker-compose.yml`, replacing `172.17.0.1` with the result of:
 
 ```
 docker run --rm alpine ip route | awk 'NR==1 {print $3}'

+ 0 - 1
compose/docker-compose.yml

@@ -26,7 +26,6 @@ services:
       - sockdata:/sock
       - ssldata:/etc/nginx/certs
     extra_hosts: &appextrahosts
-      - "host.docker.internal:172.17.0.1"
       ## M1 Mac support to fix Docker delay, see #566
       - "app:172.17.0.1"
       - "phpfpm:172.17.0.1"