This is a docker-based environment for demoing a multi-datacenter PostgreSQL service discovery environment using consul's services, checks and prepared queries.
This assumes you're using docker for mac and have utilities such as curl, dig and jq in your path. If you're not on docker for mac, modify the CONSUL_HOST variables.
docker-compose up -d
# wait until environment is fully up
./bootstrap.sh
./show-services.sh
./show-dns.sh