Dockerfile to build the haproxy docker image
/services/web/{key} {ip:port}
example
etcdctl set /services/web/web_1 172.17.8.101:49153
- haproxy.cfg.http.rr.tmpl : http & round robin
- haproxy.cfg.http.consistent.tmpl : http & hash-type consistent
docker build -t haproxy-confd .
docker run -d -p 80:80 haproxy-confd
docker logs -f [container id]