Database
Ai Forgot These Cards supports two database modes:
PostgreSQL (default; typically run via the provided Docker targets)
SQLite single-file mode (optional)
PostgreSQL (default)
In the container stacks, Postgres runs in a container named db, and a named Docker volume persists data.
Export (Postgres-only)
Exports to db/backup.sql (archives existing backups as backup1.sql, backup2.sql, ...).
If you don’t have Postgres client tools installed locally, export via the container:
Import (Postgres-only)
Or via the container:
Portable migrations (Postgres <-> SQLite)
The project supports a vendor-neutral “portable dump” format (ZIP + JSONL) to move between Postgres and SQLite.
Common workflows:
Advanced usage:
SQLite single-file mode
SQLite mode uses a local .db file (default ./db/cards.db).
Containerized:
make up-core-sqliteormake build-deploy-sqliteContainerless:
make run-standalone-sqlite