Hacker GitHub

← All repos

lucaslorentz/caddy-docker-proxy

View on GitHub ↗ ★ 4,753 Go

Caddy as a reverse proxy for Docker

35 mentions on Hacker News by 25 people: 1 story, 34 comments · first 2020-04-24 · latest 2025-09-26

Mentions per year 35 mentions · busiest year 2023 (10)
20082026
  1. Yeah, I don't use Traefik I use Caddy with https://github.com/lucaslorentz/caddy-docker-proxy to achieve configurations by labels, but that is really a killer feature. All the config to set up an app can go in a docker-compose file and I…
    comment by gh02t · 2025-09-26 · in Traefik's 10-year anniversary
  2. Yes, there's [caddy-docker-proxy]( https://github.com/lucaslorentz/caddy-docker-proxy ) which I personally use in my homelab. It will read and update on docker compose labels to configure the route. Highly recommend.
    comment by rirze · 2025-09-26 · in Traefik's 10-year anniversary
  3. From what I see, yes: https://github.com/lucaslorentz/caddy-docker-proxy/blob/mast... caddy-docker-proxy generates a Caddyfile in memory, and then it calls the internal Caddy API `/load`. So - yes, it would presumably have been affected,…
    comment by gregsadetsky · 2025-07-22 · in LetsEncrypt Outage
  4. Check https://github.com/lucaslorentz/caddy-docker-proxy it's a Caddy plugin that does exactly this and in a less verbose way of Traefik. Moreover if you have more of one caddy server deployed it handles TLS certification management in a…
  5. …with multiple docker projects. I have it running on a couple of servers, and it just works! [0] https://github.com/lucaslorentz/caddy-docker-proxy
  6. Yes, it has for years. https://github.com/lucaslorentz/caddy-docker-proxy
    comment by mholt · 2024-05-30 · in Caddy 2.8
  7. …your own plugin. Let us know if you need help. Also yes, Caddy does service discovery if you use https://github.com/lucaslorentz/caddy-docker-proxy , configuration via Docker labels. Or you can use dynamic upstreams (built-in)…
  8. …with caddy-docker-proxy for my self-hosting setup. All the features I need but *much* simpler. https://github.com/lucaslorentz/caddy-docker-proxy
  9. ▲ 2
    Caddy-Docker-Proxy: Caddy as a Reverse Proxy for Docker
    story by thunderbong · 2024-04-14 · 0 comments
  10. …days. I use a very similar process, and have found this to be a godsend in making it even quicker: https://github.com/lucaslorentz/caddy-docker-proxy It handles the routing to multiple dockerized projects on one server, by scanning docker…
    comment by oliwary · 2024-04-13 · in Self-Hosted Is Awesome
  11. The Caddy Docker Proxy Module enables Caddy to act as reverse proxy for docker containers via labels: https://github.com/lucaslorentz/caddy-docker-proxy
  12. My go to is always this instead: https://github.com/lucaslorentz/caddy-docker-proxy Single label to a docker container and with correct DNS you’ll have an automatically managed certificate right away.
  13. I have had a great experience with using this: https://github.com/lucaslorentz/caddy-docker-proxy It combines caddy with docker-compose labels, making it super easy to spin up new projects that can immediately be exposed.
  14. …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…
  15. …and the plugin will regenerate Caddy's configuration whenever the container is modified. [0] https://github.com/lucaslorentz/caddy-docker-proxy
  16. …dyserver.com/docs/running#docker-compose , and CDP is a project that autoconfigures Caddy from labels https://github.com/lucaslorentz/caddy-docker-proxy . Regarding plugins, it's super simple to write a Dockerfile to add plugins, we ship a…
    comment by francislavoie · 2023-08-17 · in Nginx Development Guide
  17. …using it (and kills the old container). I've looked at https://github.com/Wowu/docker-rollout and https://github.com/lucaslorentz/caddy-docker-proxy but haven't had time to prioritize it yet.
    comment by elitan · 2023-07-16 · in How I run my servers (2022)
  18. That can be done with Caddy as well: https://github.com/lucaslorentz/caddy-docker-proxy
    comment by francislavoie · 2023-05-24 · in Nginx 1.25.0: experimental HTTP/3 support
  19. …clever options now that auto-configure Caddy and SSL via letsencrypt all just using docker compose: https://github.com/lucaslorentz/caddy-docker-proxy
  20. …that would be super nice to build, and it's nice to see something like this land :) - https://github.com/lucaslorentz/caddy-docker-proxy - https://doc.traefik.io/traefik/providers/docker/
  21. Awesome! I might use this. I think this approach should work fine with https://github.com/lucaslorentz/caddy-docker-proxy as well.
  22. …built for doing this with a bunch of containers but I haven't had a need to switch. I do use https://github.com/lucaslorentz/caddy-docker-proxy for letting the containers themselves describe their respective domains and mapping. I do have…
    comment by zeendo · 2023-01-06 · in Ask HN: What's on your home server?
  23. …is a nice project to configure Caddy with Docker labels. Supports standalone and swarm. https://github.com/lucaslorentz/caddy-docker-proxy
  24. Yep! The CDP plugin https://github.com/lucaslorentz/caddy-docker-proxy makes configuration per docker service pretty easy!
    comment by francislavoie · 2022-09-08 · in Caddyhttp: Enable HTTP/3 by Default
  25. …can enable HTTP/3 (QUIC (UDP port 1704)) for just that container. "Labels to Caddyfile conversion" https://github.com/lucaslorentz/caddy-docker-proxy#labels-to... From https://news.ycombinator.com/item?id=26127879 re: containersec : > > -…
    comment by westurner · 2022-09-08 · in Caddyhttp: Enable HTTP/3 by Default
  26. …containers starts|restarts, so you briefly lose all connectivity to all sites behind Caddy. [0] https://github.com/lucaslorentz/caddy-docker-proxy
    comment by justsomehnguy · 2022-09-06 · in Static site hosting hurdles
  27. If you want traefik-like config from container labels, simply use: https://github.com/lucaslorentz/caddy-docker-proxy
  28. You can also do this with Caddy, using this plugin: https://github.com/lucaslorentz/caddy-docker-proxy
    comment by francislavoie · 2022-05-23 · in NGINX Proxy Manager
  29. …ages for my VPS where I host some side projects. But recently I switched to Caddy Docker Proxy ( https://github.com/lucaslorentz/caddy-docker-proxy ) and I'm happy with the switch. Seems easier to set it up directly in the docker compose…
    comment by radoomi · 2022-05-23 · in NGINX Proxy Manager
  30. I've been using this Docker image in a Docker Compose configuration to run some apps on a VPS https://github.com/lucaslorentz/caddy-docker-proxy Pretty nice, handles routing to your containers and manages LetsEncrypt for you. Response…
    comment by benbristow · 2022-04-26 · in Show HN: Caddy v2.5.0
  31. …servers like Traefik, since Caddy can fit those use cases as well, especially with this plugin: https://github.com/lucaslorentz/caddy-docker-proxy )
  32. …answered. The automated pulling of container data is not automatic, but there is a port for that ( https://github.com/lucaslorentz/caddy-docker-proxy ) with a great meta-language. There are a few improvements to be done with the logging…
    comment by BrandoElFollito · 2020-09-25 · in Traefik, Now With Native Go Plugins
  33. …in a sane way. Like this? (Am not a Docker user, but I know this is an insanely popular solution) https://github.com/lucaslorentz/caddy-docker-proxy There's also a WIP ingress controller: https://github.com/caddyserver/ingress/
    comment by mholt · 2020-07-31 · in Migrating Dropbox from Nginx to Envoy
  34. …the feature? I'll show you how to integrate it. You might be interested in this discussion: https://github.com/lucaslorentz/caddy-docker-proxy/issues/13...
    comment by mholt · 2020-05-04 · in Show HN: Caddy 2
  35. …containers out of the box, apparently you would need some plugin to have that feature on Caddy : https://github.com/lucaslorentz/caddy-docker-proxy As such, it seems like Traefik would be easier to setup for your use case.