Repository navigation
Releases
v0.1.0
This is the first tagged release of Roastbook, the self-hosted coffee journal. Previous versions were distributed as Docker images without a numbered GitHub release.
Version 0.1.0 includes private accounts, offline journaling with synchronization, and bring-your-own AI. If you already run an earlier Docker image, follow the upgrade steps below before replacing it.
Upgrading from an earlier Docker image
1. Back up and sync
Back up PostgreSQL and uploaded files, and verify that the backup restores. Keep a copy of your current configuration and image reference. Open installed apps while online so pending offline changes sync, then stop writes before upgrading.
This release runs database migrations. Starting the old image again does not undo them; a rollback may require restoring your backups.
2. Check your PostgreSQL version
The supplied Compose files now use PostgreSQL 18. A data volume created by an older PostgreSQL major version cannot be reused directly with PostgreSQL 18. Dump and restore the database before switching its image.
Follow the PostgreSQL upgrade instructions. Do not remove your existing database volume until you have a verified backup and a restore plan.
3. Choose shared access or private accounts
To keep your existing shared journal, leave AUTH_ENABLED=false and continue protecting it with Hodor, another authenticating proxy, or a private network. Existing data remains in the shared journal.
If you use or enable private accounts (AUTH_ENABLED=true):
- Set
AUTH_ADMIN_EMAILto your email address, or a comma-separated list of administrator addresses. The first account no longer automatically becomes an administrator. Existing administrators retain their role. The accounts Compose file requires this variable. - Signup is closed by default. Add invited users to
AUTH_ALLOWED_EMAILS, or explicitly setAUTH_SIGNUP_ENABLED=truefor open registration. - Rename
AUTH_URLtoPUBLIC_URL, using the external HTTPS address of your installation. The old variable is still accepted. - When enabling accounts for the first time, configure email delivery and
AUTH_SECRET, then sign in with an address listed inAUTH_ADMIN_EMAILto claim the existing journal. Run the account worker alongside the application; the accounts Compose file includes it. - Generate new Shottimer and MCP access tokens after enabling accounts.
See upgrading an existing journal for the account migration steps.
4. Update AI configuration
Each user now connects their own OpenAI-compatible provider under Settings → AI. The operator-provided key and weekly allowance are removed.
- Generate
AI_CREDENTIAL_ENCRYPTION_KEYwithopenssl rand -base64 32. Configure the same key on every replica and keep it with your database backups. AI is unavailable without it. - Remove
OPENAI_API_KEY,OPENAI_BASE_URL,OPENAI_VISION_MODEL,OPENAI_RESEARCH_MODEL,AI_PROVIDED_*,AI_TELEMETRY_RETENTION_DAYS, andAI_TELEMETRY_MAX_PAYLOAD_BYTES; these settings are ignored.AI_TELEMETRY_STORE_PAYLOADSremains supported. - For an internal provider such as Ollama, allow its origin through
AI_ALLOWED_PRIVATE_ORIGINSand enter the provider details in Settings → AI.
Existing AI request logs remain, but the migration removes estimated cost columns and the unused AI usage table.
5. Upgrade and verify
Use ghcr.io/michidk/roastbook:0.1.0 for image-based deployments. Update your Compose configuration against the files in this release, preserving your database and upload volumes. Use the same application version for migrations, the app, and the account worker.
Run migrations as the database owner before starting the application. The supplied Compose setup does this through its migrate service. The migration user must be able to create and grant the restricted roastbook_journal role.
After startup, check sign-in, your existing journal, a picture upload, and an export. Open installed apps while online to finish the browser database update and synchronize any remaining offline changes.
For Helm installations, the full upgrade guide also lists removed chart values that must be deleted before upgrading.