Add Docker healthcheck to docker-compose.yml

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-02-21 17:49:22 -07:00
parent 71552f6f83
commit b377c9a3b1
1 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,12 @@ services:
- "traefik.http.routers.xhivart-mirror.entrypoints=web"
- "traefik.http.services.xhivart-mirror.loadbalancer.server.port=3000"
- "traefik.docker.network=traefik-public"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
networks:
traefik-public: