The sure stack runs the Smithflix Sure deployment as a dedicated Rails app, Sidekiq worker, PostgreSQL database, Redis cache, and logical-backup sidecar. Treat the stack-local files under /opt/stacks/sure as the only deployment source of truth.
/opt/stacks/sure/compose.yaml and /opt/stacks/sure/compose.override.yamlsure-web, sure-worker, sure-db, sure-redis, sure-backupsure_defaultsure:workspace-dirty-7756f5d3-20260422ghcr.io/we-promise/sure:stable2026-04-22: live container labels now resolve only to /opt/stacks/sure/compose.yaml,/opt/stacks/sure/compose.override.yaml/home/adam/compose.override.sure.*.yaml files are no longer part of the live deployment and should be treated as ad hoc build artifacts, not stack config/opt/stacks/sure/.env/srv/docker/sure/app-storage/srv/docker/sure/postgres/srv/docker/sure/redis/srv/docker/sure/backups/home/adam/sure-srcSURE_POSTGRES_DB=sure_restore_verify_202604232026-04-23: sure-db, sure-backup, sure-web, and sure-worker were recreated and now boot with POSTGRES_DB=sure_restore_verify_202604232026-04-23: the live app now serves the fuller 2026-04-23 dataset with 18 accounts, 9102 entries, 4708 transactions, 14483 balances, and 67 categories2026-04-22: the old sure_production database still exists separately and still contains only the 10 demo accounts2026-04-22: fresh pre-repoint safety dumps were captured to /home/adam/sure-recovery/2026-04-22-pre-repoint2026-04-22: the current recovery dataset does not contain Ford PDF imports or family_documents; Ford loan history is live, but the statement PDFs would need a separate re-import if document access is still desired2026-04-23: scratch database sure_restore_verify_20260423 was created inside sure-db from /srv/docker/sure/backups/daily/sure_production-20260423.sql.gz2026-04-23: scratch sure_restore_verify_20260423 has the same 18 accounts as live, but fuller content: entries 9102, transactions 4708, balances 14483, categories 672026-04-23: the previous live recovery database sure_recovery_preview_20260420 remains available as a fallback at entries 4948, transactions 4679, balances 10244, holdings 40423, and categories 642026-04-23: pre-cutover safety dumps for both databases were captured to /home/adam/sure-recovery/2026-04-23-pre-cutover0.0.0.0:18100 -> 3000http://192.168.0.113:18100curl http://127.0.0.1:18100/2026-04-22cd /opt/stacks/sure && docker compose configcd /opt/stacks/sure && docker compose up -dcd /opt/stacks/sure && docker compose up -d sure-web sure-workerdocker inspect sure-web --format '{{.Config.Image}} {{index .Config.Labels "com.docker.compose.project.config_files"}}'docker logs sure-webdocker logs sure-worker/opt/stacks/sure/compose.override.yaml and redeploy from /opt/stacks/sure; do not launch the stack from ad hoc /home/adam/compose.override.sure.*.yaml files2026-04-20: sure_production was overwritten by Rails tests run inside the live container; recovery work produced preview database sure_recovery_preview_202604202026-04-22: canonical stack override updated to sure:workspace-dirty-7756f5d3-20260422 and sure-web plus sure-worker were redeployed from /opt/stacks/sure2026-04-22: verified the new app image contains the account-specific all-time chart period fix in /rails/app/models/account/chartable.rb2026-04-22: stack env was repointed from sure_production to sure_recovery_preview_20260420, then sure-db, sure-backup, sure-web, and sure-worker were recreated from /opt/stacks/sure2026-04-22: live Rails now reports Account.count=18, includes Ford Credit - 2025 Ford T350 (8506), and the Ford all-time chart series resolves from 2025-07-03 through 2026-04-232026-04-22: the current image was built from a dirty /home/adam/sure-src worktree at base revision 7756f5d30236c9fb9079cbcc8361d5202a1ecfdc; promote the underlying changes to clean git commits before reusing this tag long-term2026-04-23: restored /srv/docker/sure/backups/daily/sure_production-20260423.sql.gz into scratch database sure_restore_verify_20260423 after filtering the unsupported dump line SET transaction_timeout = 0;2026-04-23: scratch restore confirmed that the local 2026-04-23 backup is materially fuller than the current live recovery DB, especially for TSP, Robinhood, Green Card, and Businessolver account histories2026-04-23: stack env was repointed from sure_recovery_preview_20260420 to sure_restore_verify_20260423, then sure-db, sure-backup, sure-web, and sure-worker were recreated from /opt/stacks/sure2026-04-23: live Rails now reports Account.count=18, Entry.count=9102, Transaction.count=4708, Balance.count=14483, and the restored account histories for TSP, Robinhood, Green Card, and Businessolver are present again2026-04-23