Skip to content

caddy support #1246

Open
Open

Description

@draylegend

What problem will this feature address?

Alternative to traefik

Describe the solution you'd like

Describe alternatives you've considered

Additional context

No response

Will you send a PR to implement it?

No

Activity

  1. added
    enhancement
    on Jan 30, 2025
  2. codeit-ninja commented on Feb 11, 2025

    @codeit-ninja

    I would like to see this feature aswell, coolify has both traefik and caddy. In my opinion Caddy is a little more easy to work with in a docker swarm than traefik is, traefik is a pain with sharing TLS certificates without having the Enterprise edition. Caddy supports this out of the box.

  3. PSNV555 commented on Jun 9, 2025

    @PSNV555

    Hi, any ETA on this please

  4. sambitcreate commented on Jun 18, 2025

    @sambitcreate

    oh this would be nice!

  5. Darathor17 commented on Jul 17, 2025

    @Darathor17

    Indeed that would be cool to have caddy (like coolify)

  6. kkMihai commented on Sep 11, 2025

    @kkMihai

    bump

  7. R-udren commented on Nov 30, 2025

    @R-udren

    It would be great

  8. russorat commented on Jan 9, 2026

    @russorat
    Collaborator

    Can someone help explain why you would want to use Caddy here? even the coolify team doesn't recommend using it. https://coolify.io/docs/knowledge-base/proxy/caddy/overview#a-note-from-the-coolify-team

  9. tcurdt commented on Jan 9, 2026

    @tcurdt

    Can someone help explain why you would want to use Caddy here? even the coolify team doesn't recommend using it. https://coolify.io/docs/knowledge-base/proxy/caddy/overview#a-note-from-the-coolify-team

    Not sure what the "even" insinuates here.
    And the "doesn't recommend" isn't quite what it says.
    They are just only testing with traefik and can't/won't support more.

    FWIW I personally had my share of frustrations with traefik and try to stay away from it if possible. It was super awkward to debug and configure. But they had quite some more releases since.

    Plus there is a reason given in this issue.

  10. Darathor17 commented on Jan 9, 2026

    @Darathor17

    Can someone help explain why you would want to use Caddy here? even the coolify team doesn't recommend using it. https://coolify.io/docs/knowledge-base/proxy/caddy/overview#a-note-from-the-coolify-team

    Quite simple: traefik is a way more complex to manage and I had also my fair share of it. Caddy has more built in stuff and only work with it. Caddy on coolify works perfectly well.

  11. russorat commented on Jan 9, 2026

    @russorat
    Collaborator

    @tcurdt @Darathor17 thanks for the replies!

  12. henderkes commented on Jan 20, 2026

    @henderkes

    Traefik keeps failing to pick up on added domains for me and just returns 404 until I trigger an app deployment again. Traefiks access logs are enabled, yet still empty. Had the same troubles running traefik locally already.

    Caddy would be a vastly superior alternativ, traefik's docker routing is a security nightmare anyhow and caddy works and reloads reliably.

  13. syz51 commented on Mar 16, 2026

    @syz51

    yeah bumping this. Happy to help with implementation if needed

  14. jameshewitt1399 commented on Apr 20, 2026

    @jameshewitt1399

    +1 for this. I'm running 3 VPSs behind a Load Balancer and cant get SSL certs because of this

  15. yodaphone commented on May 24, 2026

    @yodaphone

    yup, please consider supporting Caddy

  16. linkthai commented on Jun 1, 2026

    @linkthai

    +1

  17. masonjames commented on Jun 2, 2026

    @masonjames

    Hey everyone!

    I've open PR adding Caddy as an alternative web server provider for Dokploy: #4534

    Current implementation includes:

    • Caddy provider setup/generation/reload support alongside Traefik
    • Provider-aware domain handling, including adding/removing domains on existing services and domains created with new services
    • Traefik -> Caddy migration tooling with dry-run/review output and rollback support
    • LetsEncrypt via Caddy, plus custom SSL certificate handling
    • Cloudflare/proxy-aware trusted proxy settings
    • Dokploy UI for selecting the active provider, running/reviewing Caddy migration, configuring trusted proxies, and viewing generated Caddy files/logs

    I've already tested this on my live Dokploy environment, but it would be very helpful to get more feedback before this is considered ready to merge.

    If anyone is able to test the PR, the most useful areas to validate are:

    • Creating a new app/service with a domain
    • Adding/removing domains on an existing app/service
    • Custom certificate behavior
    • Cloudflare proxied domains and trusted proxy settings
    • Migration from an existing Traefik setup to Caddy
    • Any UI issues around Web Server settings or generated Caddy config files

    Please share your Dokploy setup, what you tested, and any failures or confusing behavior you hit. Logs, generated caddy.json snippets, and exact reproduction steps would be especially useful.

  18. masonjames commented on Jun 10, 2026

    @masonjames

    For everyone following this: two Caddy implementations now exist on fundamentally different architectures (@Siumauricio's label-driven feat/caddy prototype vs central config generation in #4534, running in production since June). I've written up an honest comparison of both plus a proposed review path, and would value maintainer direction before more code gets written: #4615

  19. masonjames commented on Oct 2, 2026

    @masonjames

    @Siumauricio @narcisonunez #4534 is 11,656 lines of source in 81 files, and I should have agreed the design here first, as CONTRIBUTING asks. I have rebuilt it from canary at a quarter of that and want a yes or no on the shape before opening a PR.

    1. Opt-in per server, self-hosted only (refused under IS_CLOUD). Traefik stays the default and its writers run unchanged.
    2. One pure function renders a server's whole Caddyfile from the database: domains, redirects, basic auth, preview deployments, compose domains, uploaded certificates.
    3. Stock caddy:2.11.4, no Docker socket, files in /etc/dokploy/caddy. caddy reload validates first and keeps the old config on error.
    4. Dokploy keeps writing Traefik's files while a server runs Caddy, so switching back is stopping one container and starting the other.
    5. Switching: a dry run shows the Caddyfile and what cannot be carried over, then one script that restores Traefik if a step fails. Unexpired non-wildcard Let's Encrypt certificates are carried over.
    6. Out of scope: forward auth, custom Traefik middlewares and entrypoints, the Requests page. The switch is refused while any domain uses the first three, and a Caddy server refuses to save them.
    7. Size: 2,850 source lines in 37 files. Eight are new; the 29 existing files gain about 400 lines between them. One migration (an enum and two columns) and 2,000 lines of tests. The compare below shows +14,062 because 9,194 of those lines are the migration's generated Drizzle snapshot. It splits into three PRs that each stand alone, if you prefer: the provider (about 1,100 lines), the switch (about 1,500), the file browser for Caddy's own files (about 250). Branch: canary...masonjames:dokploy:feat/caddy-provider

    Checked against Traefik 3.6.25: the same responses on 62 requests (prefixes, basic auth, redirects, encoded paths, forwarded headers). One test runs against the real Caddy image.

    I will close #4534 when the new PR opens.

    Would you review a PR of this shape? If any part is the wrong direction, a one-line no now is as useful to me as a yes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions