Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update docker-compose files to include extra_hosts #32

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

mcdoogs
Copy link
Contributor

@mcdoogs mcdoogs commented Mar 29, 2023

This pull request fixes xdebug when using Docker for Linux, by manually adding the 'host.docker.internal' DNS name.
Ops' xdebug config refers to the debugging client's host using the name 'host.docker.internal', which only exists by default on Docker Desktop; so xdebug can't connect to the host machine on Docker for Linux. This PR updates the docker-compose files for the apache backends to manually add that 'host.docker.internal' to the hosts file using Docker's magic host-gateway reference. This is the official approach and shouldn't affect Docker Desktop - see this issue.
I've tested and this correctly updates the containers' hosts file, and xdebug is working now.

Set host.docker.internal to host-gateway
@khamer khamer merged commit 1ba3e0f into imarc:master Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants