Skip to content

asultan80/nginx-loadbalancer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

nginx-loadbalancer

3 backend + 1 nginx

Launch

$ sudo docker-compose up --build

$ docker exec -it docker-nginx_backend1_1 /bin/bash

$ node index.js

$ docker exec -it docker-nginx_backend2_1 /bin/bash

$ node index.js

$ docker exec -it docker-nginx_backend3_1 /bin/bash

$ node index.js

$ curl http://localhost:8080

Will return hostname of the current backend server

You can open in browser http://localhost:8080 and see the hostname as well

About

3 backend + 1 nginx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published