This repository has been archived by the owner. It is now read-only.
Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
Dockerfile
README.md
build.sh
haproxy.cfg
haproxy.sh
start.sh
supervisord.conf

README.md

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