This project aims to create a highly available cluster using HAProxy and Keepalived in a containerized environment with Docker Compose.
-
Network Configuration: The cluster operates under a network bridge with the subnet
10.0.0.0/24
. -
VRRP (Virtual Router Redundancy Protocol): Keepalived uses VRRP behind the scenes to assign a virtual IP address to both HAProxy nodes, ensuring high availability.
-
HAProxy: HAProxy (High Availability Proxy) is used to balance traffic across backend servers and perform health checks.
For a detailed guide on this setup, you can refer to my Medium article.
To run this project, simply execute:
docker compose up -d