A traefik demo with docker swarm for little / personal project (You don't need k8s).
- Auto https With Let's encrypt.
- Auto load balance.
- Proxy dashboard.
- Create a docker network
docker network create -d overlay proxy-net
More info: Docker document
- Create traefik stack
docker swarm init
docker stack deploy -c traefik-proxy-compose.yml traefik-proxy
- Start your service
docker stack deploy -c service-compose.yml my-service
When use traefik dashboard with http basic auth, use this command generate password:
echo $(htpasswd -nb user yourpassword) | sed -e s/\\$/\\$\\$/g