SSD Nodes Learn Hosting plans →
Guides Matt ConnorBy Matt Connor

Sure: self-hosting the Maybe Finance fork

Install Sure, the Maybe Finance fork, on a VPS with Docker Compose. Pin the stable tag, set your own secret key, close port 3000, and back up before upgrades.

What Sure is, and what you will run

Sure is the community fork of Maybe Finance, and you can self-host it on one VPS with Docker Compose. The Maybe Finance repository was archived on 27 July 2025 and is now read-only. Sure continues the code under the same AGPLv3 license. This guide installs the stable release, v0.7.6-hotfix.2, behind an HTTPS reverse proxy. The app port stays closed to the internet, and you take a backup before every upgrade.

The stack has four parts that always run: web (the Rails app), worker (background jobs), db (PostgreSQL 16) and redis. Two more services, backup and backup-offsite, start only when you ask for them through Compose profiles. If Compose itself is new to you, read installing Docker and Compose on a VPS first, because every command below assumes docker compose works.

Which Sure release is stable?

This is the first mistake to avoid, because Sure's tag names do not mean what most projects mean by them. The project's Docker guide defines two moving tags:

  • ghcr.io/we-promise/sure:latest is the latest alpha, not the latest release.
  • ghcr.io/we-promise/sure:stable is the latest release.

Release candidates move neither tag. You only get one if you name its version tag, such as 2026.11.30-rc.1.

The names are also changing. Sure is moving to date-based release names: alphas look like vYYYY.M.D-alpha, and candidates end in -rc.N. That switch began with v0.7.7-alpha.3, so the 0.7.6 line still uses the old numbering. When you read a date-named tag, check its suffix. A tag that ends in -alpha, -rc.N or -nightly is not stable. The project classifies a release by its tag, so go by the tag name, not by the pre-release checkbox on GitHub.

On 28 November 2026 the release with GitHub's Latest badge is v0.7.6-hotfix.2, published on 21 November. A candidate, v2026.11.30-rc.1 (also named v0.7.7-rc.1), was published on 28 November and is marked Pre-release. Check the Latest badge on the Sure releases page before you install, because a stable 2026.11.30 may ship soon.

One more detail breaks copy and paste. Git tags carry a v, but Docker tags do not. The release is v0.7.6-hotfix.2, and the image tag is 0.7.6-hotfix.2. Put the v into the image tag and you are asking for a tag name the project does not publish.

How much memory does Sure need?

Sure's Docker guide gives these figures. They are the project's own published numbers, not a benchmark run for this post.

ChartMemory figures from Sure's Docker guide (MB)
The data behind this chart
[
  {
    "label": "Steady state, measured by the project",
    "memory_mb": 352
  },
  {
    "label": "Limit the docs call comfortable",
    "memory_mb": 512
  },
  {
    "label": "Demo-data generator, seen on a 2 GB container",
    "memory_mb": 680
  },
  {
    "label": "Minimum with AI features on (1 GB)",
    "memory_mb": 1024
  }
]

The docs measured about 352 MB at steady state on a production deploy of the official image. They say Sure runs comfortably under a 512 MB limit. The docs do not say whether PostgreSQL and Redis are inside those numbers, so do not plan the whole Compose stack on a 512 MB VPS.

Two jobs need more. The demo-data generator runs in the worker and climbed to about 680 MB in the docs' test. On a 512 MB container it reaches the limit and is OOM-killed (stopped by the out-of-memory killer) part way through. Very large first imports can also go over the limit. If you turn on the AI features, the docs say to run at least 1 GB. That figure does not cover running a local model on the same box. If you set per-container limits, memory limits in Docker Compose explains what happens when a container reaches one.

Download the compose files for the release you run

The curl commands in Sure's guide download compose.example.yml and .env.example from the main branch. main is ahead of the stable release, so its files can name variables and defaults that v0.7.6-hotfix.2 does not have. Download the files from the release tag instead:

mkdir -p ~/sure && cd ~/sure
curl --fail --location --silent --show-error --output compose.yml \
  https://raw.githubusercontent.com/we-promise/sure/v0.7.6-hotfix.2/compose.example.yml
curl --fail --location --silent --show-error --output .env \
  https://raw.githubusercontent.com/we-promise/sure/v0.7.6-hotfix.2/.env.example
ls -la

ls should list compose.yml and .env. If curl prints an error that ends in 404, the tag name in the URL is wrong.

Set your own secret key and database password before the first start

This step is not optional. In this release, compose.yml holds a built-in fallback for SECRET_KEY_BASE. It is a fixed value, published in the repository for anyone to read, and Compose uses it with no warning when you set nothing. The .env you just downloaded is no better: it sets SECRET_KEY_BASE=secret-value. The main branch has since removed the fallback, because a key everyone knows lets anyone forge session cookies and derive the encryption keys.

The same file sets POSTGRES_PASSWORD=postgres, and compose.yml falls back to sure_password when the variable is unset. Replace both values, and pin the image tag:

cd ~/sure
sed -i "s/^SECRET_KEY_BASE=.*/SECRET_KEY_BASE=$(openssl rand -hex 64)/" .env
sed -i "s/^POSTGRES_PASSWORD=.*/POSTGRES_PASSWORD=$(openssl rand -hex 24)/" .env
echo 'SURE_IMAGE_TAG=0.7.6-hotfix.2' >> .env
chmod 600 .env

openssl rand -hex 64 is the generator the Sure docs give. The output is hex, so it never contains a / that would break the sed line. Now check what Compose will really use:

docker compose config | grep 'image:'
docker compose config | grep -c 'a7523c3d'

The first command should show ghcr.io/we-promise/sure:0.7.6-hotfix.2 for the Sure services. The second counts lines that still contain the start of the public default key, and it must print 0.

.env works here because Compose reads it to fill the ${...} values inside compose.yml. The file is not passed to the containers as a whole. This compose.yml has no env_file line, so only the variables it lists reach the app. That difference matters again below. How Compose reads .env files and where secrets belong covers the general rule.

Why SECRET_KEY_BASE belongs in your backups

In self-hosted mode, when you set no separate Active Record encryption keys, Sure derives its encryption keys from SECRET_KEY_BASE. So the key is part of your data. The Sure docs put it plainly: without SECRET_KEY_BASE, encrypted data in the database cannot be read. A database dump restored next to a different key gives you a database you cannot fully read.

The rule has a second half. Do not generate a new value for an existing install. A new value makes data that is already encrypted unreadable, and it signs everyone out. If you ran an older install on the built-in default, keep that value, or follow the rotation steps in Sure's docs.

Keep port 3000 off the internet

The release's compose file publishes the app as - ${PORT:-3000}:3000. No host address is named, so Docker listens on every interface, including the public one. A host firewall such as ufw does not fix this. Docker's own documentation says packets to a published port are routed before the firewall rules can be applied, which means the port stays open whatever ufw says.

Bind the port to localhost instead, so only the reverse proxy on the same server can reach it:

cd ~/sure
sed -i 's|- ${PORT:-3000}:3000|- 127.0.0.1:${PORT:-3000}:3000|' compose.yml
grep -n '3000' compose.yml

grep should show the line with 127.0.0.1: in front. On Docker Engine older than 28.0.0, a port published to localhost can still be reached by other hosts on the same L2 segment (layer 2, the local network). Check with docker version and upgrade if you are below 28.

Tell Sure it is behind HTTPS

Inside the container, Sure serves plain HTTP. When a proxy in front of it handles HTTPS, the docs say to change RAILS_ASSUME_SSL to true. In this release that value is written straight into compose.yml as RAILS_ASSUME_SSL: "false", so a line in .env has no effect. Edit the compose file:

cd ~/sure
sed -i 's/RAILS_ASSUME_SSL: "false"/RAILS_ASSUME_SSL: "true"/' compose.yml
grep -n 'RAILS_ASSUME_SSL' compose.yml

grep should show RAILS_ASSUME_SSL: "true". Leave RAILS_FORCE_SSL as it is. The docs only ask you to change RAILS_ASSUME_SSL.

What about ALLOWED_HOSTS?

You may read that you should set ALLOWED_HOSTS. That setting does not exist in v0.7.6-hotfix.2. Host checking is commented out in this release's production config, and neither the compose file nor .env.example mentions the variable. Setting it today protects nothing.

ALLOWED_HOSTS adds protection against DNS (domain name system) rebinding. It was merged into main on 25 November 2026, four days after the stable release, under the milestone v2026.11.30 / v0.7.7. The v2026.11.30-rc.1 notes list it. When you upgrade to a release that has it, it reaches the app only if compose.yml lists it in the x-rails-env block. Putting it in .env alone does nothing, for the env_file reason above.

Until then, limit hostnames at the proxy. The Caddy setup below does that.

Turn off product monitoring if you want to

This release adds anonymous product-improvement monitoring, and self-hosters can turn it off with POSTHOG_FEEDBACK_ENABLED=false. The release's compose file does not pass that variable, so a line in .env will not reach the app. Open compose.yml, find the block that starts with x-rails-env: &rails_env, and add this line, with the same indent as the SELF_HOSTED: "true" line:

POSTHOG_FEEDBACK_ENABLED: "false"

Start the stack and check it

cd ~/sure
docker compose up -d
docker compose ps
curl -sI http://127.0.0.1:3000 | head -n 1
sudo ss -tlnp | grep 3000

docker compose ps should list web, worker, db and redis as running. The curl line should print an HTTP status line. The ss line should show 127.0.0.1:3000 and no 0.0.0.0:3000. If curl prints nothing, the app may still be starting, so wait a minute and run it again. If it still prints nothing, read docker compose logs web --tail 50.

The compose file uses restart: unless-stopped, so the stack comes back after a reboot as long as Docker itself starts at boot.

Put Caddy in front with HTTPS

Any TLS (transport layer security) reverse proxy works. Caddy keeps the config shortest. Install it from its official install page. The Debian and Ubuntu package starts Caddy as a systemd service named caddy. Point a DNS record for your domain at the server, and open ports 80 and 443 to the public. Caddy needs both to get a publicly trusted certificate.

Edit the Caddyfile with sudo nano /etc/caddy/Caddyfile and replace its contents with:

sure.example.com {
	reverse_proxy 127.0.0.1:3000
}

Then reload Caddy:

sudo systemctl reload caddy

A hostname in the site address turns on Caddy's automatic HTTPS. It also restricts which requests reach Sure: Caddy honours only requests whose Host header matches that name. This is the hostname check that ALLOWED_HOSTS will add inside the app later. Open https://sure.example.com in a browser. You should see Sure's login page with a valid certificate.

Create your account, then close signup

Register at once. The first account is created from create your account on the login page. Until signup is closed, anyone who finds the URL can do the same.

Then go to Settings > Self-Hosting > Onboarding. Signup can be Open, Invite-only or Closed. Choose Closed for a personal install. With it closed, the registration page is turned off for new signups. Do not assume it starts closed. The Docker guide names no default, and the ONBOARDING_STATE=open line in .env is not passed by this compose file, so check the setting in the app.

Back up before every upgrade

The release ships a backup service. A manual backup is one command:

cd ~/sure
docker compose run --rm backup create
docker compose run --rm backup list

list should show the backup you just made. A backup holds the database dump and the uploaded files. It also holds your configuration, including .env with its secrets. Uploads kept in external object storage are not included, and Redis is not part of the bundle.

Turn on the daily job too:

docker compose --profile backup up -d backup

By default it runs every day at 02:00 UTC (BACKUP_SCHEDULE, default 0 2 * * *). Scheduled backups older than 7 days are deleted (BACKUP_KEEP_DAYS). Backups you make with create are kept, so they pile up on disk until you delete them.

Backups land in ./backups on the host by default. That is the same server, so a lost VPS takes the backups with it. Copy them off the box. The optional backup-offsite service (profile backup-offsite) syncs them to an rclone remote, or you can send the folder to two restic repositories. Each backup contains .env, and that file holds the key that unlocks your encrypted data. Keep the folder private and encrypt every copy that leaves the server.

Upgrade, and roll back if it breaks

Sure does not update itself. With a pinned tag, the order matters:

cd ~/sure
docker compose run --rm backup create
sed -i 's/^SURE_IMAGE_TAG=.*/SURE_IMAGE_TAG=NEW_TAG_WITHOUT_V/' .env
docker compose pull web worker
docker compose up -d

Change SURE_IMAGE_TAG after the backup and before the pull. If you pull first, Compose fetches the old tag again and nothing changes. Database migrations run on their own when the new containers start. pull web worker does not touch Redis, which this compose file runs as the unpinned redis:latest.

Before you move to a new release, compare your compose.yml with that tag's compose.example.yml. New settings such as ALLOWED_HOSTS only work when the compose file lists them, so a new release can need compose edits that .env cannot make. The general pattern is in backing up and upgrading a Docker Compose stack.

To roll back, stop the app, restore, and go back to the old tag:

docker compose stop web worker
docker compose run --rm backup restore BACKUP_NAME
sed -i 's/^SURE_IMAGE_TAG=.*/SURE_IMAGE_TAG=0.7.6-hotfix.2/' .env
docker compose up -d

Take BACKUP_NAME from backup list. Restore replaces the database and all uploaded files. It refuses to run while other clients are connected, which is why web and worker stop first.

Which bank connections does v0.7.6-hotfix.2 include?

The provider registry in this release labels each connection by maturity. These are the code's own labels, and the file does not define what each one promises. Most connections need your own account or API (application programming interface) keys with that provider. What works depends on the provider and on your country.

  • Stable: SimpleFIN (US), Lunch Flow (global), Plaid (US, paid), Plaid EU (paid).
  • Beta: Apple Wallet / FinanceKit (US and UK), Akahu (NZ), Up (AU), Redbark (AU), Enable Banking (EU), Wise, Mercury (US), Brex (US), SnapTrade (US and CA), IBKR, Questrade (CA), Trade Republic (EU).
  • Alpha: Monobank (UA), Fio banka (CZ), Sophtron (US), Indexa Capital (ES), Trading 212 (EU).
  • Crypto: CoinStats, Coinbase, Binance and Kraken, plus CoinSpot (beta) and on-chain wallets (alpha).

Two names you may see elsewhere are not in this release. TrueLayer (UK open banking) and Sharesight are on main and in the 2026.11.30 candidate, not in v0.7.6-hotfix.2. GoCardless is not a provider in this release at all.

Plaid has extra requirements. It needs your own Plaid keys, and your Sure instance must be reachable from the internet on a domain with working SSL (secure sockets layer, the older name for TLS). PLAID_CLIENT_ID, PLAID_SECRET and PLAID_ENV must be added to compose.yml, not only to .env. Sure's Plaid page also limits Production access for European users, even though the registry lists Plaid EU.

Moving from Maybe Finance

Sure's official docs give no migration path from Maybe Finance. On 28 November 2026 the docs index has no page about Maybe or about migration, and the Docker guide does not mention it. Discussion #200 in the Sure GitHub repository collects community methods, such as copying volumes or restoring a database dump. The project does not support them.

If you try one, keep your Maybe stack and its volumes untouched until the new install shows your data correctly. Work on a copy, never on the original.

Sure, Actual Budget or Firefly III?

Sure is the choice if you want the Maybe-style app back: bank and investment accounts in one place, plus crypto, through many provider connectors, on a Rails stack that needs PostgreSQL and Redis. Actual Budget is a local-first personal finance tool under the MIT license. Its bank sync lists Akahu, Enable Banking, SimpleFIN Bridge and Pluggy.ai, and GoCardless is not accepting new accounts. Firefly III is built on double-entry bookkeeping, with budgets, under AGPL-3.0, and suits you if you want strict double-entry accounts. For the wider field, see the comparison of self-hosted budgeting apps.

FAQ

Which Docker image tag should I use for Sure?

Pin the version of the release that carries GitHub's Latest badge, without the leading v. On 28 November 2026 that is SURE_IMAGE_TAG=0.7.6-hotfix.2. Do not use latest, because Sure's docs define it as the latest alpha. stable follows the latest release, but a pinned tag means an upgrade happens only when you choose it.

Does Sure v0.7.6-hotfix.2 support ALLOWED_HOSTS?

No. The setting was merged into main on 25 November 2026, after the 21 November stable release, and appears in the v2026.11.30-rc.1 notes. In releases that have it, it must be listed in the x-rails-env block of compose.yml. A line in .env alone does nothing. Until you run such a release, restrict hostnames at your reverse proxy.

Can Sure run on a 512 MB VPS?

Sure's docs say the app runs comfortably under a 512 MB limit, at about 352 MB steady state. They do not say whether PostgreSQL and Redis fit inside that figure, so plan for more than 512 MB for the whole stack. The demo-data generator gets OOM-killed at 512 MB, and the AI features need at least 1 GB.

Is there an official way to move from Maybe Finance to Sure?

No. Sure's docs give no migration path from Maybe Finance. Community methods exist in discussion #200 of the Sure repository, but the project does not support them. Keep your Maybe install and its volumes until the copy works.

What happens if I lose SECRET_KEY_BASE?

Without it, encrypted data in a restored database cannot be read, because Sure derives its encryption keys from that value when you set no separate keys. Sure's backups include .env, which holds the key, so copy them off the server and encrypt them. Never generate a new key for an existing install.

Was this article useful?