Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 81c955f

Browse files
authored
Add host host.docker.internal to docker-compose.yml
Make sure host.docker.internal always resolves to the docker host machine to make xdebug work out of the box not only for web but also console environment.
1 parent e0131e4 commit 81c955f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎docker-compose.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ services:
99
volumes:
1010
# Mount source-code for development
1111
- ./:/app
12+
extra_hosts:
13+
- host.docker.internal:host-gateway
1214
depends_on:
1315
- db
1416
- redis
@@ -21,6 +23,8 @@ services:
2123
- ~/.composer-docker/cache:/root/.composer/cache:delegated
2224
# Mount source-code for development
2325
- ./:/app
26+
extra_hosts:
27+
- host.docker.internal:host-gateway
2428
depends_on:
2529
- db
2630
- redis

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /