haproxy image built on top of debian jessie, with lua support and zero downtime reload.
6.6K
Yet another dockerized haproxy, built on top of debian jessie, with lua support and zero downtime reload.
docker run --rm -v myhaproxyconfigdir:/etc/haproxy vixns/haproxy haproxy -c -f /etc/haproxy/haproxy.cfg
docker run --rm --restart=always --name haproxy -d -p 80:80 -p 9302:9302 -p 443:443 -v myhaproxyconfigdir:/etc/haproxy vixns/haproxy
docker kill -s HUP haproxy
We're using this image in our mesos/marathon clusters along consul-template and docker labels.
The docker container is launched by marathon, a command line equivalent would be
docker run -d --restart=always --rm --net=host -l haproxy -v /etc:haproxy:/etc/haproxy vixns/haproxy
and the consul-template config snippset :
template {
source = "/etc/consul-template/templates.d/haproxy.tmpl"
destination = "/etc/haproxy/haproxy.cfg"
command = "for c in $(docker ps -q --filter='label=haproxy' | awk '{print $NF}');do docker kill -s HUP $c;done || true"
}
See consul-template documentation for template syntax.
Content type
Image
Digest
sha256:e2d52674b…
Size
55.1 MB
Last updated
over 9 years ago
docker pull vixns/haproxy