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

Add host.docker.internal to docker-compose.yml #493

Merged
merged 2 commits into from
Feb 11, 2025

Conversation

chrisroos
Copy link
Contributor

This should ensure that we can use host.docker.internal to connect to the host machine from within a container irrespective of the OS on the host machine.

The host.docker.internal address is automatically available to Docker Desktop on Windows and Mac, but not on Linux without this additional configuration.

This should ensure that we can use host.docker.internal to connect to
the host machine from within a container irrespective of the OS on the
host machine.

The host.docker.internal address is automatically available to Docker
Desktop[1] on Windows and Mac, but not on Linux without this additional
configuration[2].

[1]: https://docs.docker.com/desktop/features/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host
[2]: docker/for-linux#264 (comment)
@cla-bot cla-bot bot added the cla-signed label Feb 10, 2025
@raspberrypiherokubot raspberrypiherokubot temporarily deployed to editor-api-p-add-host-d-hpohvt February 10, 2025 13:27 Inactive
Copy link
Contributor

@danhalson danhalson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks

@chrisroos
Copy link
Contributor Author

Thanks, @danhalson! :-)

@chrisroos chrisroos enabled auto-merge (rebase) February 11, 2025 09:50
@chrisroos chrisroos temporarily deployed to editor-api-p-add-host-d-hpohvt February 11, 2025 09:58 Inactive
@chrisroos chrisroos merged commit 53db7a8 into main Feb 11, 2025
3 checks passed
@chrisroos chrisroos deleted the add-host-docker-internal branch February 11, 2025 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants