One great feature of caddy-docker-proxy is that you can quickly define config rules with Docker Compose labels in each containers on the fly like Traefik, instead of at a centralized place. With this feature, we can define everything in compose files, and don't ever need to mess with a config file (Caddyfile or JSON).
Taking advantage of snippets, I created this docker-compose.yaml
example so that you can quickly define routing rules and add authetication like Authelia with just 3 lines of labels below each docker container you use.
With this example, should not ever need to manually edit Caddyfile config.
When you add a new container, you just need to do this:
networks: