This repository contains a fork of Docker's automated build published to the public Docker Hub Registry.
It was forked to use supervisord to start haproxy and sshd.
Install Docker.
Download automated build from public Docker Hub Registry: docker pull llamashoes/haproxy-sshd
(alternatively, you can build an image from Dockerfile: docker build -t="llamashoes/haproxy-sshd" github.com/llamashoes/haproxy-sshd)
docker run -d -p 80:80 -p 22 llamashoes/haproxy-sshd
You can then run docker ps and check the host port that was forwarded to port 22, then ssh into the container on
that port using the username:password set in the Dockerfile (default is root:changeme).
docker run -d -p 80:80 -p 22 -v <override-dir>:/haproxy-override llamashoes/haproxy-sshd
or
docker run -d -p 80:80 -p 22 -v <override-dir>:/haproxy-override -v <log-dir>:/var/log llamashoes/haproxy-sshd
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 responsesand <log-dir> is an absolute path for log files.
After few seconds, open http://<host> to see the haproxy stats page.
Content type
Image
Digest
sha256:cc6c43a33…
Size
175.4 MB
Last updated
almost 11 years ago
docker pull llamashoes/haproxy-sshd