Skip to content

leelaeloo/Docker-Load-Balancing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Load Balancing Example (Nginx + Docker Compose)

간단한 라운드로빈 방식의 로드밸런싱 연습 레포지토리입니다.


폴더 구조

Docker-Load-Balancing/
├── docker-compose.yml
├── nginx.conf
├── webserver1/
│   ├── Dockerfile
│   └── index.html
├── webserver2/
│   ├── Dockerfile
│   └── index.html
└── webserver3/
    ├── Dockerfile
    └── index.html

실행 방법

docker compose up -d --build

접속 방법

로드밸런서 (Round Robin)

http://localhost
  • 새로고침할 때마다
  • 1 ➡️ 2 ➡️ 3 ➡️ 다시 1 순서로 서버가 응답합니다.

개별 서버 직접 접속

http://localhost:8001   (Web Server 1 - Blue)
http://localhost:8002   (Web Server 2 - Red)
http://localhost:8003   (Web Server 3 - Green)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published