Automated HA-Proxy for Docker containers
Based on https://github.com/clearlinux/dockerfiles/tree/master/haproxy
The idea behind this container is to
eth0
, so make your end-user-facing network to be first on a list.haproxy.source_port
haproxy.target_port
templates
directory to HAPROXY_CONFIG_VOLUME
with .j2
file(s)DOCKER_API_BASE_URL="unix:///var/run/docker.sock"
DOMAIN_NAME="local"
HAPROXY_CONFIG_VOLUME="/usr/local/etc/haproxy"
HAPROXY_PID_FILE="/var/run/haproxy.pid"
NETWORK_MONITOR_DEBOUNCE="10"
- in secondsNETWORK_NAME="bridge"
/usr/local/etc/haproxy
/var/run/docker.sock