Execute ./build.sh
from ./docker-compose-example
directory
execute docker-compose up -d
docker-compose ps
docker-compose logs -f nginx
Perform several times
curl localhost:8080/health
OR from browser localhost:8080/health
Verify that load-balancer works properly and returns for each request one of three replicas
Stop one replica application replica docker-compose stop backend2
Perform requests on localhost:8080/health
Verify that load-balancer returns for each request one of two replicas
Up replica back and repeat requests
docker-compose up -d backend2
Consul UI is accessible on localhost:8501