Public | Automated Build

Last pushed: 2 years ago
Short Description
Slightly modified from the trusted official haproxy build, using the haproxy-1.5 PPA from Vincent Bernat. Automatically updated on new PPA builds.
Full Description

Haproxy Dockerfile

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.

Dependencies

Installation

  1. Install Docker.

  2. Download trusted build from public Docker Registry: docker pull dockerfile/haproxy

    (alternatively, you can build an image from Dockerfile: docker build -t="dockerfile/haproxy" github.com/dockerfile/haproxy)

Usage

docker run -d -p 80:80 dockerfile/haproxy

Customizing Haproxy

docker run -d -p 80:80 -v <override-dir>:/haproxy-override dockerfile/haproxy

where <override-dir> is an absolute path of a directory that could contain:

  • haproxy.cfg: custom config file (replace /dev/log with 127.0.0.1, and comment out daemon)
  • errors/: custom error responses

After few seconds, open http://<host> to see the haproxy stats page.

Docker Pull Command
Owner
olemartinorg
Source Repository

Comments (0)