A one-shot backup service runs before the app starts (depends_on service_completed_successfully; compose re-runs exited one-shots on every up), so the plain docker compose pull + up -d update flow always snapshots the database first. Uses SQLite's online-backup API via better-sqlite3 from the app image itself - safe against the live WAL database, no downtime, no extra tooling. Backups land in ./backups (newest 14 kept); a failed backup blocks the app from starting rather than updating without a safety net.
17 lines
162 B
Plaintext
17 lines
162 B
Plaintext
node_modules/
|
|
/data/
|
|
/backups/
|
|
*.db
|
|
*.sqlite
|
|
.env
|
|
.env.*
|
|
npm-debug.log*
|
|
.DS_Store
|
|
Thumbs.db
|
|
.claude-flow/
|
|
.claude/
|
|
.swarm/
|
|
.mcp.json
|
|
ruvector.db
|
|
.playwright-mcp/
|