간단한 라운드로빈 방식의 로드밸런싱 연습 레포지토리입니다.
Docker-Load-Balancing/
├── docker-compose.yml
├── nginx.conf
├── webserver1/
│ ├── Dockerfile
│ └── index.html
├── webserver2/
│ ├── Dockerfile
│ └── index.html
└── webserver3/
├── Dockerfile
└── index.html
docker compose up -d --buildhttp://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)