Docker Haproxy image for Raspberry Pi, based on Alpine Linux for a minimal footprint.
426

This is an haproxy Docker image for arm devices, built on a Raspberry Pi 3.
Based on Alpine Linux for a minimal and clean image.
It's available on the Docker Registry :
docker pull drakerin/rpi-alpine-haproxy
To start haproxy with the default config (useless but why not :p) :
docker run -p 80:80 -p 443:443 drakerin/rpi-alpine-haproxy
A script searches for configuration override in the containers directory /tmp/conf_override.
In order to provide your own configuration / error(s) files, you will need to create a directory to share with the containers volume, e.g.:
mkdir /srv/haproxy
(According to the FHS, /srv/ contains data for the services provided by the system so it's a good idea to place your files here)
To override the configuration, copy your haproxy.conf at the root of this directory. To override the errors, create an "errors" subfolder and place your html files there.
Then run the container with the good volumes :
docker run -p 80:80 -p 443:443 -v /srv/haproxy:/tmp/conf_override drakerin/rpi-alpine-haproxy
FROM hypriot/rpi-alpine-scratch
MAINTAINER Drakaka <[email protected]>
RUN apk update \
&& apk upgrade \
&& apk add haproxy \
&& rm -rf /var/cache/apk/*
ADD start-haproxy.sh /start-haproxy.sh
RUN mkdir /tmp/conf_override
VOLUME ["/tmp/conf_override"]
WORKDIR /etc/haproxy
EXPOSE 80 443
CMD ["/bin/sh", "/start-haproxy.sh"]
Content type
Image
Digest
Size
3.9 MB
Last updated
over 10 years ago
docker pull drakerin/rpi-alpine-haproxy