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:56 -07:00
parent 71ae6c3df2
commit e0fc2d0895
1 changed files with 6 additions and 0 deletions

View File

@ -10,6 +10,12 @@ services:
- "traefik.http.routers.lunarcal.rule=Host(`lunarcal.jeffemmett.com`)" - "traefik.http.routers.lunarcal.rule=Host(`lunarcal.jeffemmett.com`)"
- "traefik.http.routers.lunarcal.entrypoints=web" - "traefik.http.routers.lunarcal.entrypoints=web"
- "traefik.http.services.lunarcal.loadbalancer.server.port=80" - "traefik.http.services.lunarcal.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