https://github.com/sporestudio/load-balancer
Load balancer to handle requests between two HTTP web servers in Nginx.
https://github.com/sporestudio/load-balancer
docker-compose haproxy makefile nginx
Last synced: about 2 months ago
JSON representation
Load balancer to handle requests between two HTTP web servers in Nginx.
- Host: GitHub
- URL: https://github.com/sporestudio/load-balancer
- Owner: sporestudio
- License: gpl-3.0
- Created: 2025-01-21T11:14:36.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-21T11:38:04.000Z (over 1 year ago)
- Last Synced: 2025-01-21T12:25:48.739Z (over 1 year ago)
- Topics: docker-compose, haproxy, makefile, nginx
- Language: HTML
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dockerized Load Balancer with Nginx and HAProxy
This project demonstrates a simple load balancer setup using Docker containers, featuring two Nginx servers serving the same web page and a HAProxy load balancer to distribute traffic between them.
---
## Features
- **Nginx Servers**:
- Two Nginx servers (`web1` and `web2`) configured to serve the same web page.
- Custom configuration for serving static files.
- **HAProxy**:
- Load balancer using a round-robin algorithm.
- Routes traffic to both Nginx servers.
## Requirements
- [Docker](https://www.docker.com/) (20.10 or later recommended)
- [Docker Compose](https://docs.docker.com/compose/) (v1.29 or later recommended)
## Setup Instructions
1. **Clone the repository**:
```bash
$ git clone https://github.com/sporestudio/load-balancer.git
$ cd load-balancer
```
2. **Deploy the project**
```bash
$ make deploy
```
3. **Stop the project**
```bash
$ make stop
```
## License
This project is under GNU General Public License.
## Author
This project was created by sporestudio.