Traefik Docker#
Architecture#
Traefik is an open-source Edge Router that makes publishing your services a fun and easy experience. It receives requests on behalf of your system and finds out which components are responsible for handling them.
Docker Compose#
traefik.yml
traefik.yaml
Quick Start#
You can open a browser and go to http://localhost:8080/api/rawdata to see Traefik’s API rawdata
traefik-whoami.yml
docker-compose -f traefik-whoami.yml up -d
curl -H Host:whoami.docker.localhost http://192.168.128.3
docker-compose -f traefik-whoami.yml up -d --scale whoami=2
curl -H Host:whoami.docker.localhost http://192.168.128.4