Re:A simple load balancer presence manager for Docker contai...
by bruce_one on Saturday September 13, 2014 @01:26AM
(#8311700)
Docker injects environment variables with ip addresses, as well as setting the host name.
Hence it's very easy to use the environment variables and not worry about hostnames :-)
Eg
backend beChalet
option httpchk GET /
server chalet ${CHALET_PORT_80_TCP_ADDR}:${CHALET_PORT_80_TCP_PORT} maxconn 200 check
Eg
https://docs.docker.com/userguide/dockerlinks/#container-lin... has more details