The haproxy container
  • Dockerfile 53.5%
  • Shell 31.1%
  • Python 15.4%
Find a file
Clement Verna c529c28f11 Drop Release label in favor of OSBS release_bump plugin.
OSBS can automatically bump the release number, for that
we just need to drop the label from the Dockerfile

See https://pagure.io/ContainerSIG/container-sig/issue/1

Signed-off-by: Clement Verna <cverna@tutanota.com>
2018-08-20 19:47:57 +02:00
files Add missing directory files 2017-04-18 12:53:44 +02:00
tests Initial Commit 2017-04-18 12:42:38 +02:00
.gitignore Initial setup of the repo 2017-04-13 11:46:12 +00:00
Dockerfile Drop Release label in favor of OSBS release_bump plugin. 2018-08-20 19:47:57 +02:00
haproxy-container.service Initial Commit 2017-04-18 12:42:38 +02:00
help.md Initial Commit 2017-04-18 12:42:38 +02:00
openshift-template.yml Initial Commit 2017-04-18 12:42:38 +02:00
README.md Initial Commit 2017-04-18 12:42:38 +02:00
sources Initial setup of the repo 2017-04-13 11:46:12 +00:00

haproxy

HAProxy reverse proxy for high availability environments.

Summary

  • Dockerfile - build container image with haproxy.
  • openshift-template.yml - Template for OpenShift to haproxy.

How to use the container

  • Copy ./examples/haproxy.cfg to /etc/haproxy/haproxy.cfg
  • Run two HTTPD servers on IP1:port1 and IP2:port2
  • Modify /etc/haproxy/haproxy.cfg so it uses relevant addresses and ports.

Command for running haproxy docker container:

docker run -it n

How to run haproxy as standalone container

Copy haproxy-container.service to /usr/lib/systemd/system/ directory

sudo cp haproxy-container.service /usr/lib/systemd/system/
systemctl daemon-reload

Command for running memcached as standalone container:

systemctl start haproxy-container

How to stop memcached as standalone container

Command for stopping haproxy as standalone container:

systemctl stop haproxy-container

How to test the haproxy

Statistic can be seen on haproxy url http://<haproxy_url>/haproxy?stats.