- Before we begin, lets cleanup any running Docker stack
docker stack rm traefik
If you named you stack something else use your specified name. If you don't remember rundocker stack ls
- Change to the
08-Advanced-Tips
folder - Start Traefik
docker stack deploy -c docker-compose.pilot.yml traefik
- Open the Traefik dashboard 0.0.0.0:8080
- At the top of the Dashboard click
Register Traefik Instance
- Fill in step 1 token name
- Step 2 copy the static configuration in file(YAML) format and pasted in the
traefik.yml
file in theEnable Traefik Pilot
section
################################################################
# Enable Traefik Pilot
################################################################
experimental:
pilot:
token: "<insert your token here>"
- Stop Traefik
docker stack rm traerfik
- Redeploy Traefik
docker stack deploy -c docker-compose.pilot.yml traefik
- Open the Traefik dashboard 0.0.0.0:8080
- Open Traefik Pilot by clicking on your username in the upper right hand corner.