syth0le / nginx-load-balancer

this repo was created for learning main features of nginx+docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

nginx-load-balancer

this repo was created for learning main features of nginx+docker

for run execute command:

docker-compose up -d --build --scale app=3

after that execute this command 10 times:

curl localhost

You will get different outputs each time:

> curl localhost
--- {"message":"Hello, this is container: b1f0411005e9"}
> curl localhost
--- {"message":"Hello, this is container: 5f119e8a9667"}
> curl localhost
--- {"message":"Hello, this is container: b1f0411005e9"}
> curl localhost
--- {"message":"Hello, this is container: 3674815eaa4c"}
...

for stopping all containers execute command:

docker-compose down

About

this repo was created for learning main features of nginx+docker

License:Apache License 2.0


Languages

Language:Python 64.5%Language:Dockerfile 35.5%