This repository contains Dockerfile of Haproxy for Docker. This build is based on the trusted official haproxy build, but this build gets its packages from the haproxy 1.5 PPA authored by Vincent Bernat.
Whenever a new package is successfully build on the PPA, the image should also be rebuilt on the docker registry (see the build_on_updates.sh script that i run as a cron job). If this doesn't happen, give me a nudge.
(alternatively, you can build an image from Dockerfile:
docker build -t="dockerfile/haproxy" github.com/dockerfile/haproxy)
docker run -d -p 80:80 dockerfile/haproxy
docker run -d -p 80:80 -v <override-dir>:/haproxy-override dockerfile/haproxy
<override-dir> is an absolute path of a directory that could contain:
haproxy.cfg: custom config file (replace
127.0.0.1, and comment out
errors/: custom error responses
After few seconds, open
http://<host> to see the haproxy stats page.