caddy-docker-proxy VS caddy-docker

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

caddy-docker-proxy

Caddy as a reverse proxy for Docker (by lucaslorentz)

caddy-docker

Source for the official Caddy v2 Docker Image (by caddyserver)
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 caddy-docker
54 30
2,358 386
- 2.8%
7.4 5.8
2 days ago about 1 month ago
Go Dockerfile
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

caddy-docker

Posts with mentions or reviews of caddy-docker. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-12-06.
  • Which reverse proxy for public and Lan sites with valid https?
    2 projects | /r/selfhosted | 6 Dec 2023
    The official Caddy documentation of their Docker image: https://hub.docker.com/_/caddy
  • Leaking Bitwarden's Vault with a Nginx vulnerability
    10 projects | news.ycombinator.com | 3 Jul 2023
    I use https://static-web-server.net/

    Cross-platform, written in Rust, straightforward configuration, secure defaults, also has a hardened container image and a hardened NixOS module.

    I wouldn't recommend Caddy. Their official docker image runs as root unnecessarily (and the reasoning suggests a lack of understanding) [1], and they don't provide a properly sandboxed systemd unit file [2].

    [1]: https://github.com/caddyserver/caddy-docker/issues/104

  • Docker Cannot Mount Caddyfile on Remote Host
    1 project | /r/webdev | 11 Apr 2023
  • Which reverse proxy are you using?
    16 projects | /r/selfhosted | 7 Apr 2023
    There is also a short section about it on the Docker hub page under the "Adding custom Caddy modules" section: https://hub.docker.com/_/caddy
  • Caddy, Go, Docker and a Single Page App
    6 projects | dev.to | 3 Apr 2023
    Caddy uses a number of volumes. Two point directly at files within our project, first our Caddyfile, then our public folder which Caddy will serve live files. The other two are virtual filesystems Docker will create as defined by the master volumes parameters. We can assume the caddy_config volume is where active configuration is stored as it is not discussed on the Caddy Docker Official Image page, so we're copying their parameter exactly, but the caddy_data volume needs some extra discussion. It is used to store a number of things including SSL certificates. By default Docker creates and destroys volumes upon startup and exit. As we want to persist our certificate across sessions we can take advantage of an external Docker volume. These virtual filesystems are created before starting the Docker session for the first time. This can ve done from the command line or more easily from within the Docker Desktop app. Simply choose "Volumes", click the "Create" button and specify caddy_data.
  • Caddy with Cloudflare plugin?
    3 projects | /r/unRAID | 5 Mar 2023
  • Having trouble creating volumes - any help? (Caddy 2 via portainer)
    1 project | /r/portainer | 10 Feb 2023
    I've been able to create a network with no issues (that I know of yet) but when I try to create the volumes I run into trouble. This specific example is from Caddy2...
  • I’m new to docker how can I run my website
    3 projects | /r/docker | 2 Sep 2022
    For a reverse proxy I would suggest Caddy. The configuration is super easy and it handles SSL for you out of the box using LetsEncrypt! There’s also an official docker image like PHP and MySQL here https://hub.docker.com/_/caddy
  • Can you people please suggest a suitable architecture for the following problem?
    3 projects | /r/devops | 14 Jul 2022
    Their image is dead simple to use, the config is fine, and auto-https is baked in. You can use it as a sidecar, proxy for multiple images, or just as a base to add your app into, depending on the complexity of your existing config.
  • The Power of the XDG Base Directory Specification (2019)
    1 project | news.ycombinator.com | 7 Jun 2022

What are some alternatives?

When comparing caddy-docker-proxy and caddy-docker 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

laravel-websockets-example - Quick example of a docker stack for laravel-websockets

traefik - The Cloud Native Application Proxy

foundryvtt-docker - An easy-to-deploy Dockerized Foundry Virtual Tabletop server.

Portainer - Making Docker and Kubernetes management easy.

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

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

cloudflare - Caddy module: dns.providers.cloudflare

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

docker-compose-shiny-example - Docker Compose Example with Shiny Apps