HAProxy reverse proxy for high availability environments.
./examples/haproxy.cfg
to /etc/haproxy/haproxy.cfg
IP1
:port1
and IP2
:port2
/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
.