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:48:43 -07:00
parent eb48114fbd
commit 56673ef428
1 changed files with 6 additions and 0 deletions

View File

@ -8,6 +8,12 @@ services:
- "traefik.http.routers.cca.rule=Host(`crypto-commons.org`) || Host(`www.crypto-commons.org`)" - "traefik.http.routers.cca.rule=Host(`crypto-commons.org`) || Host(`www.crypto-commons.org`)"
- "traefik.http.routers.cca.entrypoints=web,websecure" - "traefik.http.routers.cca.entrypoints=web,websecure"
- "traefik.http.services.cca.loadbalancer.server.port=80" - "traefik.http.services.cca.loadbalancer.server.port=80"
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://127.0.0.1:80/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
networks: networks:
- traefik-public - traefik-public