Automatically register containers with nginx-confd-proxy
Running the registration application looks something like this.
$ docker run \ -e HOST=$(hostname) \ -e ETCD_URL=$(hostname):4001 \ -e CLUSTER=local \ -e MAPPING=website:*:8080 \ chatspry/nginx-confd-reg
Map containers to upstreams
MAPPING environment variable can be used to register containers matching patterns.
When container name and internal port combinations are matched, the containers host port along with the host ip will be registered with the upstream.
You can easily map multiple types of containers differently by giving the
MAPPING variable comma separated mapping values.