standard traefik container verison v2.1.4
I have working traefik service in my swarm, all is working perfectly for services inside the swarm.
But I cannot figure out how to pass the traffic to the service outside of swarm
I tried to add those labels to the traefik service
- traefik.http.routers.service.rule=Host(domain.resolvable.to.swarm.cluster)
- traefik.http.routers.service.entrypoints=websecure
- traefik.http.routers.service.tls=true
- traefik.http.routers.service.tls.certresolver=leresolver
- traefik.http.services.service.loadbalancer.servers.url=http://192.168.1.xx:8080
192.168.1.xx points to the machine in the internal network serving http on port 8080
obviously as part of the command
- "--entrypoints.websecure.address=:443"
and
- "--certificatesresolvers.leresolver.acme.email=admin@address"
- "--certificatesresolvers.leresolver.acme.storage=/letsencrypt/acme.json"
- "--certificatesresolvers.leresolver.acme.tlschallenge=true"
I’m also seeing a similar issue where Traefik v2 on swarm seems work great for Docker services but I keep getting 502 Bad Gateway Errors when I try to create a local (non Docker) proxy to an internal IP using the File Provider below? If you got this working with both Docker Providers and File Providers,
Could you please post your setup for the Traefik Stack and your dynamic file provider?