How do we get NGINX reverse proxy to proxy_pass
into the right IP/resolve the container's hostname? I get the notion that resolver
pointing to an exposed Docker-embedded DNS is ideal.
Context: Debian Host (not dockerized) NGINX. Docker containers are on same host and necessarily on an overlay
network and working well in their own right.
I've been experimenting & reading for hours on this and similar posts include:
https://stackoverflow.com/questions/35744650/docker-network-nginx-resolver
https://stackoverflow.com/questions/39729663/query-docker-embedded-dns-from-host
I was unable to get nslookup
to work with Consul and various DNSmasq stuff
socat
approach nearly got me there, but it resolves and spits out the non-exposed (non-overlay) network IP