forked from codeliner/php-ddd-cargo-sample
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
custom xdebug and extra_hosts to make host.docker.internal works! tha…
…nks to gitpod-io/gitpod#6446
- Loading branch information
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
zend_extension=xdebug.so | ||
xdebug.default_enable=1 | ||
xdebug.remote_enable=1 | ||
xdebug.remote_handler=dbgp | ||
; port 9000 is used by php-fpm | ||
; tmy: change to 9001 so phpstorm can directly use it zz-_07-_y22-0220-1625 | ||
xdebug.remote_port=9001 | ||
xdebug.remote_autostart=1 | ||
; !!!NOTICE!!! MUST remember to do extra_hosts in docker-compose.yml or do for docker run --add-host host.docker.internal:host-gateway | ||
; Ref: https://github.com/gitpod-io/gitpod/issues/6446 | ||
xdebug.remote_host=host.docker.internal | ||
;not useful - tried in docker not working to connect back to host machine zz-_07-_y22-0220-1614 | ||
;xdebug.remote_connect_back=1 |
ca57066
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I do not have an docker-compose.yml, how can I do "do for docker run --add-host host.docker.internal:host-gateway" and where?