Public | Automated Build

Last pushed: 18 days ago
Short Description
tiny haproxy image built on alpine linux
Full Description


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: halog, openssl, socat, haproxy-systemd-wrapper

It's on docker-hub and github

tags and links


To build the image, clone the repo and run

./ Dockerfile-1.8

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.8 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.8 haproxy -f /usr/local/etc/haproxy/haproxy.cfg -c
Docker Pull Command
Source Repository