Created
October 29, 2017 23:49
-
-
Save yogeek/ee7a2d2242f7c20c24a61db92da5671f to your computer and use it in GitHub Desktop.
Traefik demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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