Post 9vQXLSFzuBSOAwRS8O by charims@mastodon.technology
 (DIR) More posts by charims@mastodon.technology
 (DIR) Post #9vQWyNDMUG4bsNCdqy by djsumdog@hitchhiker.social
       2020-05-26T04:14:02Z
       
       0 likes, 0 repeats
       
       Starting to get use to traefik. I don't understand why your service name has to be in the label. Shouldn't it just figure it out from the container name?Other than that, so far I seem to be getting the hang of it. I've got LetsEncrypt working, ipv6, multi-IP/multi-lb, http-https redirect .. just need www redirects and I'm good.
       
 (DIR) Post #9vQXLSFzuBSOAwRS8O by charims@mastodon.technology
       2020-05-26T04:18:02Z
       
       0 likes, 0 repeats
       
       @djsumdog I really like traefik. We use it at work with consul to allow apps that don't use consul to reach services that use consul for service discovery. Haven't used it with containers, but I imagine the label thing is for flexibility.
       
 (DIR) Post #9vQYALZEXMUQCEhrdo by djsumdog@hitchhiker.social
       2020-05-26T04:27:26Z
       
       0 likes, 0 repeats
       
       @charims on my old VMs I was using a complex flow of HAProxy, Certbot and some custom python scripts:https://github.com/sumdog/bee2/blob/master/dockerfiles/HAProxySetup/haproxy-config.py
       
 (DIR) Post #9vSlf2oM0dSKirfPCi by alex@gleasonator.com
       2020-05-27T06:08:12.030559Z
       
       0 likes, 0 repeats
       
       @djsumdog Is traefik like the Nginx proxy_pass feature but entirely built around that?
       
 (DIR) Post #9vSm38ML26kqsc37xI by djsumdog@hitchhiker.social
       2020-05-27T06:12:27Z
       
       1 likes, 0 repeats
       
       @alex It's more like HAProxy. It's a load balancer, but unlike haproxy where everything is defined in a config file, it scans for docker containers and creates routes based on the container labels (metadata). marathon-lb does something similar, but under the surface it just generates configuration for haproxy, kinda like a much more complex version of what I do here:https://github.com/sumdog/bee2/blob/master/dockerfiles/HAProxySetup/haproxy-config.py
       
 (DIR) Post #9vSmG4BPs4YJgz6jHE by djsumdog@hitchhiker.social
       2020-05-27T06:14:47Z
       
       0 likes, 0 repeats
       
       @alex But yes, haproxy and traefik just do load balancing/proxying. You can load balance with nginx via proxy_pass, but it's more designed to serve content, both static and fastcgi.