Skip to content

ramzsey/nginx-load-balancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Basic nginx load balancer showcase

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors