matrix-media-repo icon indicating copy to clipboard operation
matrix-media-repo copied to clipboard

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

Open Scrin opened this issue 5 months ago • 0 comments

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)

Scrin avatar Aug 30 '24 16:08 Scrin