Haproxy / SSHD Dockerfile
It was forked to use supervisord to start haproxy and sshd.
Base Docker Image
(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).
Customizing Haproxy and log dir
docker run -d -p 80:80 -p 22 -v <override-dir>:/haproxy-override llamashoes/haproxy-sshd
docker run -d -p 80:80 -p 22 -v <override-dir>:/haproxy-override -v <log-dir>:/var/log llamashoes/haproxy-sshd
<override-dir> is an absolute path of a directory that could contain:
haproxy.cfg: custom config file (replace
127.0.0.1, and comment out
errors/: custom error responses
<log-dir> is an absolute path for log files.
After few seconds, open
http://<host> to see the haproxy stats page.