Hello everyone,
I’m trying to adapt a Docker Compose file for a Dify server stack to use Caddy as the reverse proxy instead of Nginx. I’ve been using Caddy in Docker, and it has consistently been the most straightforward and efficient solution for my needs, particularly when compared to Nginx and Traefik. However, this time I’m dealing with a more complex setup that involves multiple domains pointing to the same container, and I’m unsure how to configure this correctly in Caddy.!
I’m working with a Dify server stack (dify/docker/docker-compose.yaml at main · langgenius/dify · GitHub), and one of the challenges is that this stack requires multiple domains to be directed to the same container.
Does anyone have a Docker Compose file for this Dify stack that uses Caddy as the reverse proxy?
I’m currently using the lucaslorentz/caddy-docker-proxy:2.9
image because of its ease in automatically updating the Caddyfile, but I can revert to the official image without any problems.
I would greatly appreciate any help, advice, or tips you can offer. Thank you in advance!
Docker version 27.1.1, build 6312585
Image Caddy: lucaslorentz/caddy-docker-proxy:2.9
Distributor ID: Ubuntu
Description: Ubuntu 20.04.6 LTS
Release: 20.04
Codename: focal
docker compose file: dify/docker/docker-compose.yaml at main · langgenius/dify · GitHub
Thnx
Cristiano Brazil