Skip to content

ayoubeddafali/LoadBalancing-docker-swarm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Load Balancing in Docker Swarm Mode

This is a simple project in which we are combining load balancing with docker swarm.

The cluster look like this :

DEMO

Configuring the nodes :

We start by enabling swarm mode, and defining the leader

DEMO

We then, get the token for joining workers :

WORKER

We check the nodes status :

STATUS_NODE

We create the service with 3 replicas

Service

Configuring the load balancer :

we start by initializing a new swar mode :

LOAD_Swarm

We configure nginx :

NGINX_CONF

We create service :

NGINX_SERVICE

You can test that the load balancer is working, by changing the /usr/share/nginx/index.html in each container node.

Maintainer

Ayoub Ed-dafali

Releases

No releases published

Packages

No packages published