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:15 -07:00
parent ebaf56e573
commit 308bc12b9f
1 changed files with 6 additions and 0 deletions

View File

@ -6,6 +6,12 @@ services:
- "traefik.enable=true" - "traefik.enable=true"
- "traefik.http.routers.rstack.rule=Host(`rstack.online`) || Host(`www.rstack.online`)" - "traefik.http.routers.rstack.rule=Host(`rstack.online`) || Host(`www.rstack.online`)"
- "traefik.http.services.rstack.loadbalancer.server.port=80" - "traefik.http.services.rstack.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