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:06 -07:00
parent cbde6eede5
commit b4c1f4dbaa
1 changed files with 6 additions and 0 deletions

View File

@ -12,6 +12,12 @@ services:
- "traefik.http.middlewares.post-app-redirect.redirectregex.regex=^https?://www\\.post-appitalism\\.app/(.*)"
- "traefik.http.middlewares.post-app-redirect.redirectregex.replacement=https://post-appitalism.app/$${1}"
- "traefik.http.middlewares.post-app-redirect.redirectregex.permanent=true"
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:
- traefik-public