Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 716 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 716 Bytes

consul-demo

Configuration files for a consul demo

Requirements

Start Demo

  • watch docker-compose ps
  • bash start_demo.sh

Scale to 3 Servers

docker-compose scale server=2

Query DNS API

docker exec consuldemo_client_1 dig -p 8600 @localhost nginx.service.dc1.consul

Query HTTP API

docker exec consuldemo_client_1 curl -s http://localhost:8500/v1/health/service/nginx | python -m json.tool

HAProxy Links

End Demo

bash end_demo.sh