How to set up Traefik on docker-swarm
Prerequisite
Docker swarm
1 | docker swarm init |
Installation
1 | # stack.yml |
run with docker
1 | docker stack deploy -c stack.yml http |
Configuration
1 |
|
Examples
1 | # stack.yml |
Run
1 | docker stack deploy -c stack.yml test |
Test
1 | curl -H 'Host: whoami' localhost |