Skip to content

Project: Three docker containers load balancing by Nginx; deployed using docker-compose.

Notifications You must be signed in to change notification settings

faysalmehedi/load_balancing_nginx_docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Diagram

Project Diagram

TASK:

  1. Load Balancing Three Docker containers with Nginx
  2. Load Balancing by health check
  3. Load Balancing by Weight check

Steps for Running

NGINX CONFIGURATION FILE

nginx.conf
http {
        upstream webapp {
                server app01:5000 weight=3;
                server app02:5000 max_fails=3 fail_timeout=30s;
                server app03:5000;
        }

        server {
                listen 80;
                location / {
                        proxy_pass http://webapp;
                }
        }
}

events { }

About

Project: Three docker containers load balancing by Nginx; deployed using docker-compose.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published