This is an example of how to use Traefik in Docker Swarm Mode with Let's Encrypt and Cloudflare. This projet is based on this video from @Techno Tim. It's just refactored to use in Docker Swarm Mode.
Watch the video to understand the concepts and the configuration and leave a like ;)
docker swarm init
docker network create -d overlay proxy
cd traefik
docker stack deploy -c traefik.yml traefik -d
cd my-service
docker stack deploy -c myservice.yml myservice -d --with-registry-auth