This image is build form a (mostly) staticaly compiled haproxy via dockerize. Thus reducing the size of the image to 4MB.
Many thanks to hypriots for its work and posts... it obviously inspired most of this work.
The sources of this image can be found on github:
docker run -d -p 80:80 cblomart/rpi-haproxy
docker run -d -p 80:80 -v <dir>:/etc/haproxy cblomart/rpi-haproxy
where <dir> is an absolute path of a directory that could contain:
You can get the default haproxy.cfg from a container:
docker cp <container>:/etc/haproxy/haproxy.cfg haproxy.cfg
Logging is sent to 127.0.0.1 to avoid error accessing /dev/log socket device.