1.1 KiB
1.1 KiB
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.cfgto/etc/haproxy/haproxy.cfg - Run two HTTPD servers on
IP1:port1andIP2:port2 - Modify
/etc/haproxy/haproxy.cfgso 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.