Skip to content

Haproxy Dockerfile for the Raspberry Pi

License

Notifications You must be signed in to change notification settings

ARMed-Docker/rpi-haproxy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rpi-haproxy

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 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)

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.

About

Haproxy Dockerfile for the Raspberry Pi

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%