Base docker image for haproxy
An haproxy docker image based on alpine linux, so it's tiny.
Haproxy is compiled with support for TLS/SSL, HTTP compression, and LUA in addition to all the normal haproxy load balancing goodness. A Linux kernel >= 3.7 is required for some options (e.g. TFO).
Additional binaries that are also installed (when available) and very useful for managing haproxy include:
tags and links
1.8.1Newest stable release (Dockerfile)
1.7.9Current stable release (Dockerfile)
1.6.12Previous stable release (Dockerfile)
1.5.19Previous stable release (Dockerfile)
To build the image, clone the repo and run
The image is basic and includes no haproxy configuration file so to be useful either build a new image with this one as a base and include whatever haproxy configuration is needed, or bind-mount the haproxy configuration file or /usr/local/etc/haproxy configuration directory.
To test that haproxy is built and runs
docker run -it --rm fingershock/haproxy-base:1.7 haproxy -vv
To run with configuration bind-mounted from a directory and get logs from the container to the docker0 host
docker run -it --rm -v /var/log:/var/log -v /my/config:/usr/local/etc/haproxy:ro fingershock/haproxy-base:1.7 haproxy -f /usr/local/etc/haproxy/haproxy.cfg -c