commit e1f3f14a84810ca6641bc11cc29047a5abdab9c6 Author: Travis Vasceannie Date: Sun Dec 21 21:23:42 2025 +0000 Add caddy.yml diff --git a/caddy.yml b/caddy.yml new file mode 100644 index 0000000..2321ed1 --- /dev/null +++ b/caddy.yml @@ -0,0 +1,26 @@ +services: + + caddy: + image: ${SEAFILE_CADDY_IMAGE:-lucaslorentz/caddy-docker-proxy:2.9-alpine} + restart: unless-stopped + container_name: seafile-caddy + ports: + - 80:80 + - 443:443 + environment: + - CADDY_INGRESS_NETWORKS=seafile-net + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - ${SEAFILE_CADDY_VOLUME:-/opt/seafile-caddy}:/data/caddy + networks: + - seafile-net + healthcheck: + test: ["CMD-SHELL", "curl --fail http://localhost:2019/metrics || exit 1"] + start_period: 20s + interval: 20s + timeout: 5s + retries: 3 + +networks: + seafile-net: + name: seafile-net