Sign inSign up

rstiller/haproxy

By rstiller

Updated about 11 years ago

haproxy reloads without packet-loss

Image
1

3.9K

rstiller/haproxy repository overview

haproxy

A HAproxy image (based on Alpine Linux - small and secure) with zero-packet-loss configuration reload.

run

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>

restart

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

Tag summary

Content type

Image

Digest

sha256:73ba20f32

Size

16.1 MB

Last updated

about 11 years ago

docker pull rstiller/haproxy