Run that on your host and start your other containers on the host with VIRTUAL_HOST env variables and it will set up virtual host mappings via nginx automatically.
Re:A simple load balancer presence manager for Docker contai...
by SEJeff on Tuesday September 16, 2014 @04:35PM
(#8326949)
Bonus points that via a trie, vulcand can scale in performance linearly to 10s of thousands (or more) of urls with 0 performance impact. (I requested that feature)
You can try nginx-proxy that wraps up the approach in a docker container. See https://registry.hub.docker.com/u/jwilder/nginx-proxy/.
Run that on your host and start your other containers on the host with VIRTUAL_HOST env variables and it will set up virtual host mappings via nginx automatically.