Fix Caddy volume mount issue in Portainer

- Remove problematic Caddyfile volume mount that fails in Portainer
- Use Caddy's command-line reverse proxy mode instead
- This avoids file mounting issues while providing same functionality
- Caddy will auto-handle HTTPS/Let's Encrypt for the specified domain
- Simpler, more portable configuration for containerized deployments
This commit is contained in:
Arnaud
2026-07-01 11:59:28 +02:00
parent 0481fded33
commit aed38e4eca
+3 -1
View File
@@ -112,11 +112,13 @@ services:
- "80:80"
- "443:443"
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile
- caddy_data:/data
- caddy_config:/config
environment:
DOMAIN: ${DOMAIN:-localhost}
# Use Caddy's reverse proxy command without file mounting
# This avoids Portainer file mount issues
command: caddy reverse-proxy --from "${DOMAIN:-localhost}" --to web:3000
depends_on:
- web
networks: