Skip to content

Commit d0cac5f

Browse files
committed
Add platform-agnostic xdebug remote host IP
1 parent 99bd2d7 commit d0cac5f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docker-compose.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ services:
2929
# PHP_XDEBUG_DEFAULT_ENABLE: 1
3030
# PHP_XDEBUG_REMOTE_CONNECT_BACK: 0
3131
# PHP_IDE_CONFIG: serverName=my-ide
32-
# PHP_XDEBUG_REMOTE_HOST: 172.17.0.1 # Linux
33-
# PHP_XDEBUG_REMOTE_HOST: 10.254.254.254 # macOS
34-
# PHP_XDEBUG_REMOTE_HOST: 10.0.75.1 # Windows
32+
# PHP_XDEBUG_REMOTE_HOST: host.docker.internal # Docker 18.03+ & Linux/Mac/Win
33+
# PHP_XDEBUG_REMOTE_HOST: 172.17.0.1 # Linux, Docker < 18.03
34+
# PHP_XDEBUG_REMOTE_HOST: 10.254.254.254 # macOS, Docker < 18.03
35+
# PHP_XDEBUG_REMOTE_HOST: 10.0.75.1 # Windows, Docker < 18.03
3536
volumes:
3637
- ./:/var/www/html
3738
## For macOS users (https://wodby.com/stacks/drupal/docs/local/docker-for-mac/)

0 commit comments

Comments
 (0)