Skip to content

Instantly share code, notes, and snippets.

@yogeek
Created October 29, 2017 23:49
Show Gist options
  • Save yogeek/ee7a2d2242f7c20c24a61db92da5671f to your computer and use it in GitHub Desktop.
Save yogeek/ee7a2d2242f7c20c24a61db92da5671f to your computer and use it in GitHub Desktop.
Traefik demo
# Get compose file
wget https://raw.githubusercontent.com/containous/traefik/master/examples/compose-traefik.yml
# Edit it to use different frontents for the 2 backends
# Launch services
docker-compose -f compose-traefik.yml up
# Connect to Traefik UI : http://IP:8080
# Test Load-Balancing
curl --header 'Host:whoami.docker.localhost' node1
# Scale
docker-compose -f compose-traefik.yml scale whoami1=5
# Test Load-Balancing
curl --header 'Host:whoami.docker.localhost' node1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment