caddy-docker-proxy VS cloudflare

Compare caddy-docker-proxy vs cloudflare and see what are their differences.

caddy-docker-proxy

Caddy as a reverse proxy for Docker (by lucaslorentz)

cloudflare

Caddy module: dns.providers.cloudflare (by caddy-dns)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
caddy-docker-proxy cloudflare
54 10
2,358 364
- 6.0%
7.4 5.0
5 days ago 24 days ago
Go Go
MIT License Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

caddy-docker-proxy

Posts with mentions or reviews of caddy-docker-proxy. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-13.
  • Caddy-Docker-Proxy: Caddy as a Reverse Proxy for Docker
    1 project | news.ycombinator.com | 14 Apr 2024
  • Self-Hosted Is Awesome
    6 projects | news.ycombinator.com | 13 Apr 2024
    https://github.com/lucaslorentz/caddy-docker-proxy

    It handles the routing to multiple dockerized projects on one server, by scanning docker compose files for labels and automatically setting up the required caddy configuration.

  • Keycloak SSO with Docker Compose and Nginx
    21 projects | news.ycombinator.com | 11 Feb 2024
    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.

  • Working on Multiple Web Projects with Docker Compose and Traefik
    8 projects | news.ycombinator.com | 3 Oct 2023
    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.

  • Caddy is the first and only web server to use HTTPS automatically and by default
    4 projects | news.ycombinator.com | 12 Sep 2023
    If you want a slightly heavier but more robust solution, caddy-docker-proxy[0] is a plugin that listens to the Docker socket and automatically updates the Caddy configuration based on Docker labels you add to containers.

    I.e. it makes Caddy act a bit more like Traefik. Most of the time, you'll just add the label `caddy.reverse_proxy={{upstreams http 8080}}` to your containers and the plugin will regenerate Caddy's configuration whenever the container is modified.

    [0] https://github.com/lucaslorentz/caddy-docker-proxy

  • Nginx Development Guide
    6 projects | news.ycombinator.com | 16 Aug 2023
    I disagree, Caddy works great in Docker. See https://caddyserver.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 builder image variant that can be used to compile in any plugins you want.
  • How I run my servers
    8 projects | news.ycombinator.com | 16 Jul 2023
    ````

    This way, Caddy will buffer the request and give 30 seconds for your new service to get online when you're deploying a new version.

    Ideally, during deployment of a new version the new version should go live and healthy before caddy starts 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.

  • Which reverse proxy are you using?
    16 projects | /r/selfhosted | 7 Apr 2023
    Docker labels support is available via a plugin https://github.com/lucaslorentz/caddy-docker-proxy
  • My repository of the week: NGINX Proxy - Automated nginx for your containers
    5 projects | /r/docker | 1 Apr 2023
    Or caddy-docker-proxy: https://github.com/lucaslorentz/caddy-docker-proxy
  • Caddy Repository from Lucas lorentz cant use Caddyfile?
    1 project | /r/caddy | 25 Mar 2023
    I am trying now for some Days to use a Caddyfile additionaly to the auto generated files from lucas lorentzes caddy repositroy. https://github.com/lucaslorentz/caddy-docker-proxy

cloudflare

Posts with mentions or reviews of cloudflare. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-04-07.
  • Which reverse proxy are you using?
    16 projects | /r/selfhosted | 7 Apr 2023
    If you're using Cloudflare then you might need the Cloudflare module which is a little annoying because you need to rebuild the Caddy executable (or Docker image) to include it. I just set up a GitHub repo that uses GitHub Actions to build and publish a Docker image that includes the Caddy Docker Proxy and Cloudflare modules, but I haven't figured out how automatically update the image when a new version of Caddy is released so it's still a manual process for now.
  • Help: Caddy setup for internal LAN access only
    1 project | /r/selfhosted | 17 Mar 2023
    if domain.xyz is already pointed to cloudflare's nameservers, you'll want to use the cloudflare dns plugin with caddy for a wildcard tls cert from letsencrypt.
  • Story on revisiting Svelte/Kit after moving to Solid, then Remix
    3 projects | /r/sveltejs | 17 Jan 2023
    I'm on Cloudflare now, so I build my own image based on this Docker image to use SSL from Cloudflare.
  • Caddy2 reverse proxy to pihole not working
    2 projects | /r/pihole | 25 Oct 2022
    Anyways, my end goal is to use cloudflare aswell, because I see that then you can get a wildcard DNS record. Have you tried that? Are you using https://github.com/caddy-dns/cloudflare ? Did you have to build it yourself, or is it included in dockerhub image?
  • Komga & caddyserver2 are driving me insane.
    1 project | /r/selfhosted | 14 Aug 2022
  • NGINX Proxy Manager
    15 projects | news.ycombinator.com | 20 May 2022
    > First, what versions am I getting? Does using `2.5.1-builder` result in a customer built binary that's version `2.5.1`? The command usage [1] of the `xcaddy` command says it falls back to the `CADDY_VERSION` environment variable if it's not set explicitly. Since it's not set explicitly, I go looking for that variable in the Dockerfile [2].

    Yeah - the default version it'll build with is the version embedded in the builder image, so in that case, v2.5.1. But really, you can just use always use the latest builder image and specify the version you want in the xcaddy command, i.e. 'xcaddy build v2.5.1 --with ', or any other git ref if not a version (cause we're using Go to build and you can use any git ref, like a commit hash or branch name if you want to try a WIP pull request).

    We set it up with a good default so most users wouldn't need to ask that question, it should "just work" for them. But it's a valid question to ask.

    > That's some templating language I'm not familiar with and I can't track down where the variable gets set, at least not quickly.

    Yeah we're using Gomplate for generating the Dockerfiles for the official Docker Library builds, since we need to make builds for every CPU architecture, and even Windows docker images (I still have no idea why anyone would want those, but alas). Either way, that's an implementation detail of how we automate this stuff, doesn't matter to users.

    > Now, what version of `caddy-dns/cloudflare` am I getting?

    The latest, if you don't specify a version. The https://github.com/caddy-dns/cloudflare repo doesn't have tagged releases, so it'll just be the latest commit on the master branch. You can specify a specific commit like '--with github.com/caddy-dns/cloudflare@8ea1cff' for (as of this writing) the commit just before the latest.

    > What other risks come along with building and maintaining my own custom image?

    Honestly, none. Maybe problems with plugins not being compatible with eachother, but Caddy's plugin design means that should rarely happen, except if two plugins have the same module ID. But that's up to you to make sure you don't pick two plugins that try to do the same thing.

    Because of the way Go builds work, they can always be cross-compiled. We don't use CGO, so builds of Caddy are completely static and have zero dependencies. There's really no risk that it doesn't build in a specific environment, or whatever.

    > If I build a custom image, do I let other people I help with the odd tech thing use it or is all the effort for me only? I don't want to become the maintainer of a Docker image others rely on, so I can't even re-use any related config if I help others in the future since they won't have access to the needed image.

    Up to you. But that's the exact reason we don't maintain builds with plugins ourselves. There's literally an infinite amount of combinations possible. Some have suggested like "caddy-lite" and "caddy-full" sort of setups where we ship just a few vetted plugins or "yolo give me all the plugins" but that's silly. We don't have the time or resources to vet all the plugins.

    From your perspective it might seem like "duh, there should be an official build with Cloudflare", but really it's a pretty small percentage of users who need this.

    > Also, a 4 line Docker file looks nice in terms of being simple, but explicitly declaring or even adding comments describing some of the things I pointed out above can save people a lot of time. Even comments with links to the relevant portions of the docs would be super useful.

    (as I wrote in my other comment, the docs for this are on https://hub.docker.com/_/caddy)

    > The desire for wildcard certificates is to keep things from being discoverable via CTLogs.

    It's really trivial for someone to scan until they hit subdomains that return a successful response, if they really cared. This doesn't really protect from anything. Using wildcards for that is a bit of an antipattern.

  • Best Applications To Use For 2FA For VPN Connections Into Local LAN?
    6 projects | /r/selfhosted | 28 Apr 2022
  • Can't access website from outside local network.
    1 project | /r/selfhosted | 2 Feb 2022
    For more, see: https://github.com/caddy-dns/cloudflare
  • 3 weeks ago I knew nothing about docker or selfhosting. Now I have my small home server and thanks to r/selfhosted I was able to setup it all by myself! Any recommendations on what should I install next?
    11 projects | /r/selfhosted | 28 Oct 2021
    As default it does need port 80 open to renew certificates, but you can use DNS challenge instead. https://github.com/caddy-dns/cloudflare

What are some alternatives?

When comparing caddy-docker-proxy and cloudflare you can also consider the following projects:

Nginx Proxy Manager - Docker container for managing Nginx proxy hosts with a simple, powerful interface

Caddy - Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

unbound

traefik - The Cloud Native Application Proxy

crowdsec - CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.

Portainer - Making Docker and Kubernetes management easy.

caddy-docker - Source for the official Caddy v2 Docker Image

jellyfin-media-player - Jellyfin Desktop Client based on Plex Media Player

docker-pi-hole - Pi-hole in a docker container

namecheap