A HAproxy image (based on Alpine Linux - small and secure) with zero-packet-loss configuration reload.
docker run -d \
--name="<name of the container>" \
--cap-add=NET_ADMIN \
-v <path to haproxy>:/etc/haproxy/haproxy.cfg \
-p 0.0.0.0:80:80 -p 0.0.0.0:443:443 \
rstiller/haproxy
weave run --with-dns <an ip address> \
--cap-add=NET_ADMIN \
--name="<name of the container>" \
-v <path to haproxy>:/etc/haproxy/haproxy.cfg \
-p 0.0.0.0:80:80 -p 0.0.0.0:443:443 \
rstiller/haproxy
weave export <an ip address>
Note: Changes in the mounted configuration file are immediately available inside the container - so simply restart haproxy for the changes to be applied.
docker exec <name of the container> /haproxy.sh
Content type
Image
Digest
sha256:73ba20f32…
Size
16.1 MB
Last updated
about 11 years ago
docker pull rstiller/haproxy