When I first set traefik up it was awesomely simple on docker swarm. Two labels on a service that wanted routing and all was good in the world.
But, and I don't know if Ive not read the docs properly, and/or these problems are solved and I'm just doing something wrong:-
I thought there would be some way to turn https on generally so that just the two labels can be used for most configurations. But no, now every service needs to explicitly have configuration settings for two entry-points.
I keep on having services in different stacks with identical traefik.http.router/service names interfere with each other. Its super annoying because its shared infrastructure and some team can now roll something out that effects another teams productivity unexpectedly.
There seems no way to inhibit the error spam generated from having non traefik enabled services around, even if they are attached to different networks and have no traefik labels at all. exposedByDefault = false must be set, but then an extra label to enable traefik must be added to everything.
Is this as short as I can get the per service dynamic config:
deploy: labels: traefik.enabled: "true" traefik.http.routers.cocos_cocos.rule: Host("creator.example.net") traefik.http.routers.cocos_cocos.entrypoints: web traefik.http.routers.cocos_cocos-tls.rule: Host("creator.example.net") traefik.http.routers.cocos_cocos-tls.entrypoints: websecure traefik.http.routers.cocos_cocos-tls.tls: "true" traefik.http.services.cocos_cocos.loadbalancer.server.port: 80