consul and traefik up
docker-compose up -d
services up
docker-compose -f docker-compose-services.yaml up -d
Register manually
curl --request PUT --data @consul_register_whoami1.json http://127.0.0.1:8500/v1/agent/service/register
curl --request PUT --data @consul_register_whoami2.json http://127.0.0.1:8500/v1/agent/service/register
curl to whoami passing by traefik, filter with host
curl -H "Host:whoami" 0.0.0.0
Filter with prefix
curl http://127.0.0.1/whoami-alpha
Deregister
curl --request PUT http://127.0.0.1:8500/v1/agent/service/deregister/whoami1
curl --request PUT http://127.0.0.1:8500/v1/agent/service/deregister/whoami2