fix: litestream single replica + disable healthcheck gate

v0.5.8 dropped multi-replica support — remove the local path replica,
keeping only R2. Also disable litestream's healthcheck so deploy's
`up --wait` isn't gated on the backup service.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Deeman
2026-02-20 12:54:19 +01:00
parent dc02563e52
commit b0f36192a6
3 changed files with 5 additions and 9 deletions

View File

@@ -1,6 +1,4 @@
# Litestream configuration for SQLite replication
# Primary replica: Cloudflare R2 (off-host disaster recovery)
# Secondary replica: local file backup inside the volume
# Litestream configuration for SQLite replication to Cloudflare R2
#
# Set these env vars in .env / GitLab CI variables:
# LITESTREAM_R2_BUCKET e.g. padelnomics-backups
@@ -15,15 +13,9 @@
dbs:
- path: /app/data/app.db
replicas:
# Primary: Cloudflare R2
- url: s3://${LITESTREAM_R2_BUCKET}/padelnomics/app.db
access-key-id: ${LITESTREAM_R2_ACCESS_KEY_ID}
secret-access-key: ${LITESTREAM_R2_SECRET_ACCESS_KEY}
endpoint: https://${LITESTREAM_R2_ENDPOINT}
retention: 168h
snapshot-interval: 6h
# Secondary: local backup inside the volume (fast local restore)
- path: /app/data/backups
retention: 24h
snapshot-interval: 1h