Sign inSign up

hypriot/rpi-haproxy

By hypriot

•Updated almost 11 years ago

Haproxy Dockerfile

Image
19

100K+

hypriot/rpi-haproxy repository overview

⁠Haproxy Dockerfile

This repository contains a port of the Dockerfile of Haproxy⁠ for the Raspberry Pi.

Many kudos to the upstream repo https://github.com/dockerfile/haproxy⁠

⁠Base Docker Image
  • resin/rpi-raspbian:wheezy
⁠Installation
  1. Install Docker⁠ by downloading the HypriotOS SD card image⁠.

  2. Download hypriot/rpi-haproxy⁠ from public Docker Hub Registry⁠: docker pull hypriot/rpi-haproxy

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

⁠Usage
docker run -d -p 80:80 hypriot/rpi-haproxy
⁠Customizing Haproxy
docker run -d -p 80:80 -v <override-dir>:/haproxy-override hypriot/rpi-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.

Tag summary

Content type

Image

Digest

sha256:4f9e1b859…

Size

33 MB

Last updated

almost 11 years ago

docker pull hypriot/rpi-haproxy