Nginx load balancer example
This project just demonstrates the most basic Nginx load balancer setup using Docker and Docker Compose. It consists of a master nginx server that distributes incoming requests to multiple backend services.
Project Structure
services: Defines the Nginx containers.
master: Load balancer.
app: First backend server.
app2: Second backend server.
app3: Third backend server.
networks: Configures a bridge network for communication between containers.
Usage
Run docker compose up -d to start the load balancer and backend servers.
Open http://127.0.0.1:8080 to test the load balancer.
Each time after making changes to nginx config files clear cache (CTRL+SHIFR+R) to check the affect.