## What Pins Postgres 18 everywhere a server version is specified, instead of a mix of floating `latest` and pinned 16 - and adds a boot-time guard so self-hosters with existing PG16 data get a clear, actionable error instead of a crash-looping database. | File | Before | After | |---|---|---| | `.github/workflows/ci.yml` (both test jobs) | `image: postgres` (untagged, floats on latest) | `image: postgres:18` | | `.github/workflows/llm-evals.yml` (both eval jobs) | `image: postgres:16` | `image: postgres:18` | | `.devcontainer/docker-compose.yml` | `image: postgres:16` | `image: postgres:18` + version guard | | `compose.example.yml` | `image: postgres:16` | `image: postgres:18` + version guard; backup sidecar `alpine:3.23` + `postgresql18-client~=18` | | `compose.example.ai.yml` (db service) | `image: pgvector/pgvector:pg16-trixie` | `image: pgvector/pgvector:pg18-trixie` + version guard | | `compose.example.ai.yml` (backup sidecar) | `alpine:3.20` + `postgresql16-client~=16` | `alpine:3.23` + `postgresql18-client~=18` | | `docs/hosting/ai.md` | recommends `pgvector/pgvector:pg16-trixie` | recommends `pgvector/pgvector:pg18-trixie` | ## Why Main CI floated on untagged `postgres`, which resolves to `latest` - PG18 today. Everything else pinned 16, so CI was effectively testing a different major version than the dev container and self-host examples shipped. Pinning 18 makes the repo deterministic and puts every surface on the version main CI has already been running green against. pgvector spots keep pgvector images (verified `pgvector/pgvector:pg18-trixie` exists on Docker Hub, as does `postgres:18`). The backup sidecars move to `alpine:3.23`, the first Alpine branch shipping `postgresql18-client` (18.4-r0 per pkgs.alpinelinux.org); pg_dump should match the server major. ## Migration guard (`bin/db-version-check.sh`) The stock postgres image dies with `FATAL: database files are incompatible with server` when the data dir is from an older major, and leaves users to figure out why. Each compose setup now runs a tiny one-shot `db-version-check` service (alpine, no new dependencies) that mounts the data volume read-only, reads `PG_VERSION`, and: - **fresh/empty data dir** -> passes, install proceeds at 18 - **data dir already at 18** -> passes - **data dir at any other major** -> exits 1 with an actionable message (migrate via `pg_upgrade` or dump/restore, see docs; or `docker volume rm` for a deliberately fresh start), and `depends_on: service_completed_successfully` stops the real `db` container from ever starting on the mismatched directory Wired into `compose.example.yml`, `compose.example.ai.yml` (the pgvector image uses the same `PG_VERSION` mechanism), and `.devcontainer/docker-compose.yml`. Not touched: the production `Dockerfile` and `.devcontainer/Dockerfile` (client tools only, no server), and the Helm chart (Postgres comes from the CloudNativePG operator's default image - separate decision). ## Caveat for self-hosters PG18 cannot read a PG16 data directory - upgrading requires `pg_upgrade` or dump/restore. The compose examples affect **fresh setups**; existing self-hosters on 16 keep working on 16 images and only move when they deliberately migrate. Dev-container users with existing `postgres-data` volumes should recreate the volume (`docker volume rm`) or migrate. The guard exists so that hitting this wall is obvious instead of cryptic. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Updates** * Updated PostgreSQL-based environments, CI workflows, and evaluation workflows to PostgreSQL 18. * Updated Pgvector and backup tooling for PostgreSQL 18 compatibility. * Updated hosting documentation and example configurations for the new PostgreSQL storage layout and migration options. * **Bug Fixes** * Added a database version check that prevents startup with incompatible existing data and provides actionable migration guidance. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: jjmata <187772+jjmata@users.noreply.github.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Deutsch | Español | Français | 日本語 | 한국어 | Português | Русский | 中文
Sure: The personal finance app for everyone
Get involved: Discord • Website • Issues
Important
This repository is a community fork of the now-abandoned Maybe Finance project.
Learn more in their final release doc.
Backstory
The Maybe Finance (archived/abandoned repo) team spent most of 2021–2022 building a full-featured personal finance and wealth management app. It even included an “Ask an Advisor” feature that connected users with a real CFP/CFA — all included with your subscription.
The business end of things didn't work out, and so they stopped developing the app in mid-2023.
After spending nearly $1 million on development (employees, contractors, data providers, infra, etc.), the team open-sourced the app. Their goal was to let users self-host it for free — and eventually launch a hosted version for a small fee.
They actually did launch that hosted version … briefly.
That also didn’t work out — at least not as a sustainable B2C business — so now here we are: hosting a community-maintained fork to keep the codebase alive and see where this can go next.
Join us!
Hosting Sure
Sure is a fully working personal finance app that can be self hosted with Docker. Sure can be accessed from a browser, the macOS desktop app, the mobile app, API clients, and LLM agents. See Sure Clients for an overview.
Forking and Attribution
This repo is a community fork of the archived Maybe Finance repo. You’re free to fork it under the AGPLv3 license — but we’d love it if you stuck around and contributed here instead.
To stay compliant and avoid trademark issues:
- Be sure to include the original AGPLv3 license and clearly state in your README that your fork is based on Maybe Finance but is not affiliated with or endorsed by Maybe Finance Inc.
- "Maybe" is a trademark of Maybe Finance Inc. and therefore, use of it is NOT allowed in forked repositories (or the logo)
Performance Issues
With data-heavy apps, inevitably, there are performance issues. We've set up a public dashboard showing the problematic requests seen on the demo site, along with the stacktraces to help debug them.
https://www.skylight.io/app/applications/s6PEZSKwcklL/recent/6h/endpoints
Any contributions that help improve performance are very much welcome.
Local Development Setup
If you are trying to self-host the app, read this guide to get started.
The instructions below are for developers to get started with contributing to the app.
Requirements
- See
.ruby-versionfile for required Ruby version - PostgreSQL >9.3 (latest stable version recommended)
- Redis > 5.4 (latest stable version recommended)
Getting Started
cd sure
cp .env.local.example .env.local
bin/setup
bin/dev
# Optionally, load demo data
rake demo_data:default
Visit http://localhost:3000 to view the app.
If you loaded the optional demo data, log in with these credentials:
- Email:
user@example.com - Password:
Password1!
For further instructions, see guides below.
Setup Guides
- Mac dev setup
- Linux dev setup
- Windows dev setup
- Dev containers - visit this guide
One-click Install
Render expects each button target branch to have a render.yaml at the repository root. The branch-ready Blueprint files live in branches/<branch-name>/render.yaml in a separate repo and can be copied to each corresponding branch root.
License and Trademarks
Maybe and Sure are both distributed under an AGPLv3 license.
- "Maybe" is a trademark of Maybe Finance, Inc.
- "Sure" is not, and refers to this community fork.