fix: litestream healthcheck gate + 1yr retention

Re-enable deploy gate on litestream: pgrep-based healthcheck with 6
retries (30s window) after a 15s start period — broken backups now
fail the deploy loudly instead of silently succeeding.

Extend retention from 7d to 1yr (8760h): WAL frames are tiny for a
low-traffic app, R2 free tier covers years of storage.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-20 13:00:29 +01:00
parent b0f36192a6
commit 76fc19c183
3 changed files with 8 additions and 3 deletions

View File

@@ -35,7 +35,11 @@ services:
- app-data:/app/data
- ./padelnomics/litestream.yml:/etc/litestream.yml:ro
healthcheck:
disable: true
test: ["CMD-SHELL", "pgrep -x litestream > /dev/null"]
interval: 5s
timeout: 5s
retries: 6
start_period: 15s
# ── Blue slot ─────────────────────────────────────────────