I want to use caddy.json with docker-compose how can i?

Your volumes were fine, you need to override the command the container starts up with.

So, command: caddy run --config /etc/caddy/caddy.json

1 Like