caddy-l4 VS caddy-docker-proxy

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

caddy-l4

Layer 4 (TCP/UDP) app for Caddy (by mholt)

caddy-docker-proxy

Caddy as a reverse proxy for Docker (by lucaslorentz)
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-l4 caddy-docker-proxy
20 54
765 2,358
- -
7.2 7.4
5 days ago 4 days ago
Go Go
Apache License 2.0 MIT License
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-l4

Posts with mentions or reviews of caddy-l4. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-05-18.
  • Caddylike solution for SSH/SFTP
    2 projects | /r/selfhosted | 18 May 2023
    https://github.com/mholt/caddy-l4 and https://github.com/kadeessh/kadeessh can do SSH forwarding.
  • Minecraft server with VPS as a proxy
    2 projects | /r/selfhosted | 8 Mar 2023
    3) Use a L4 TCP/UDP plugin for caddy. https://github.com/mholt/caddy-l4
  • Nginx Reverse Proxy game hosting
    2 projects | /r/selfhosted | 9 Jan 2023
    Wireguard gives my service servers their own internal IP for the gateway to reference (nothing fancy done with it, no iptables modifications like you may see on other guides), and I use NGINX for the game server proxying, specifically linuxserver's nginx container. I love Caddy, but even with caddy-l4 I couldn't get it working right for Valheim (and thus UDP), but NGINX worked real quick.
  • Help routing packets from a static public ip to tailscale device
    1 project | /r/Tailscale | 17 Nov 2022
  • Accessing an IP camera stream through caddy
    2 projects | /r/selfhosted | 20 Oct 2022
    This may help: https://github.com/mholt/caddy-l4
  • The Future of Nginx: Getting Back to Our Open Source Roots
    12 projects | news.ycombinator.com | 23 Aug 2022
    Well, that's a bit off-topic from the parent comment, which was more about the Caddyfile supporting complex config (versus the underlying JSON config) and not really "complex usecases".

    But that said, from a quick Google search... was this an RTMP stream? If so, I suppose you'd want to use https://github.com/mholt/caddy-l4 which is a plugin for Caddy that lets you do TCP-layer things. Caddy's standard distribution just ships an HTTP server (plus TLS and PKI, etc), which is layer-7

    You might be able to use caddy-l4's "tee" handler to pipe into multiple "proxy" handlers. But I'm not sure anyone's tried this yet, I had no idea people did this sort of thing. I'd be interested to hear if it does work though.

  • Brand new to this, have a few questions about DDNS, reverse proxies, etc
    2 projects | /r/selfhosted | 18 Jun 2022
    If you are only having your services accessible via LAN, HTTPS isn't totally necessary, but I would still recommend it. I think a reverse proxy will be easier than your described method. Just set it to listen to 443 and have all of your other services on random ports being proxied from the reverse proxy. If you want HTTPS from your reverse proxy to your services, most reverse proxies will have this kind of feature. Here is the caddy L4 raw TCP stream module: https://github.com/mholt/caddy-l4
  • Alternative to SRV record?
    3 projects | /r/selfhosted | 23 May 2022
    I had a similar problem a while back and found this project (Caddy-L4). It had no releases or examples on how to build it so I forked it and added some Docker stuff.
  • Show HN: Caddy v2.5.0
    13 projects | news.ycombinator.com | 26 Apr 2022
    "Caddy L4" aka "Project Conncept" might be what you're looking for:

    https://github.com/mholt/caddy-l4

    "Project Conncept is an experimental layer 4 app for Caddy. It facilitates composable handling of raw TCP/UDP connections based on properties of the connection or the beginning of the stream."

  • I'm Using SNI Proxying and IPv6 to Share Port 443 Between Webapps
    6 projects | news.ycombinator.com | 23 Apr 2022
    Nice, this is kind of why I made Project Conncept. It's a powerful TCP and UDP stream multiplexer based on Caddy: https://github.com/mholt/caddy-l4

    You can route raw TCP connections by using higher layer protocol matching logic like HTTP properties, SSH, TLS ClientHello info, and more, in composable routes that let you do nearly anything.

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

What are some alternatives?

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

gateway-api - Repository for the next iteration of composite service (e.g. Ingress) and load balancing APIs.

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

authelia - The Single Sign-On Multi-Factor portal for web apps

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

ingress - WIP Caddy 2 ingress controller for Kubernetes

traefik - The Cloud Native Application Proxy

nginx-proxy - Automated nginx proxy for Docker containers using docker-gen

Portainer - Making Docker and Kubernetes management easy.

caddy-ssh - Caddy-SSH is a general-purpose, extensible, modular, memory-safe SSH server built in Go [Moved to: https://github.com/kadeessh/kadeessh]

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

cert-manager - Automatically provision and manage TLS certificates in Kubernetes

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