Provided your DNS is setup to forward foo.bar.com to the host running nginx-proxy, the request will be routed to a container with the VIRTUAL_HOST env var set.
也就是说需要本地配置 host 以便把 VIRTUAL_HOST 转发到 nginx-proxy 运行的容器中,但是怎么知道 nginx-proxy 运行的实例的 ip 呢?每次的 ip 可能不一样啊。