/load_balancing_nginx_docker

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

Primary LanguagePython

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 { }