top | item 37490733

(no title)

Whitestrake | 2 years ago

Heck, you could extend it with Caddy Docker Proxy and go right back to the labels-as-configuration method.

https://github.com/lucaslorentz/caddy-docker-proxy

I actually do this, because I kinda like having the proxy config right next to the app config in my Compose file, but I also dislike how much manual configuration Traefik needs. Downside is you need to know how to write Caddyfile (easy enough) and then also know how to write labels so CDP translates them into the correct Caddyfile (also easy enough, but could be annoying if you're learning both at the same time). Upshot is that once you know how it translates and you know what you need to write, it works just like Traefik but with just two labels, and I think that's pretty neat.

Caddy can support a surprising amount of weird and wonderful configurations, too.

discuss

order

jhot|2 years ago

I do this at home. The labels are generally much simpler than traefik.

labels:

  caddy: subdomain.${DOMAIN_NAME}

  caddy.reverse_proxy: "{{upstreams 8000}}"