3 ms·
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 ab
by bruce_one 12y ago
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
https://docs.docker.com/userguide/dockerlinks/#container-linking https://docs.docker.com/userguide/dockerlinks/#container-lin... has more details