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
- resin/rpi-raspbian:wheezy
-
Install Docker by downloading the HypriotOS SD card image.
-
Download automated build 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
)
docker run -d -p 80:80 hypriot/rpi-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
with127.0.0.1
, and comment outdaemon
)errors/
: custom error responses
After few seconds, open http://<host>
to see the haproxy stats page.