Sign inSign up

llamashoes/haproxy-sshd

By llamashoes

•Updated almost 11 years ago

Run haproxy with sshd

Image
0

1.6K

llamashoes/haproxy-sshd repository overview

⁠Haproxy / SSHD Dockerfile

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.

⁠Base Docker Image
⁠Installation
  1. Install Docker⁠.

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

⁠Usage
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

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 responses

and <log-dir> is an absolute path for log files.

After few seconds, open http://<host> to see the haproxy stats page.

Tag summary

Content type

Image

Digest

sha256:cc6c43a33…

Size

175.4 MB

Last updated

almost 11 years ago

docker pull llamashoes/haproxy-sshd