matrix-media-repo
matrix-media-repo copied to clipboard
Fix local development docker compose nginx config to work properly with non-docker-for-desktop setups
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)