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

Fix local development docker compose nginx config to work properly with non-docker-for-desktop setups #612

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Scrin
Copy link

@Scrin Scrin commented Aug 30, 2024

With most non-docker-for-desktop docker setups (for example native docker on linux) the host.docker.internal domain is not properly resolved at nginx startup. The typical "fix" is to instruct nginx explicitly to use the docker embedded dns resolver at 127.0.0.11 dynamically at request time by specifying the resolver in the config as well as putting the actual target for the proxy_pass directive behind a variable (otherwise nginx will attempt to resolve the address at startup and never again after that)

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.

1 participant