Public | Automated Build

Last pushed: 2 years ago
Short Description
Run haproxy with sshd
Full Description

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.

Docker Pull Command
Owner
llamashoes
Source Repository

Comments (0)