HAProxy reverse proxy for high availability environments.
- Dockerfile - build container image with haproxy.
- openshift-template.yml - Template for OpenShift to haproxy.
- Copy
./examples/haproxy.cfg
to/etc/haproxy/haproxy.cfg
- Run two HTTPD servers on
IP1
:port1
andIP2
:port2
- Modify
/etc/haproxy/haproxy.cfg
so it uses relevant addresses and ports.
Command for running haproxy docker container:
docker run -it n
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
Command for stopping haproxy as standalone container:
systemctl stop haproxy-container
Statistic can be seen on haproxy url http://<haproxy_url>/haproxy?stats
.