To self-host Sure on a managed VPS is to keep your accounts, transactions and budgets on a server of your own, which our teams keep up to date and monitor day and night. Sure is a free, open source personal finance app under the AGPL-3.0 license, the community fork of Maybe Finance. This guide follows its official Docker Compose file at version 2026.11.30, and we ran every command on a Simafri VPS before writing it: installation with PostgreSQL and Redis, HTTPS, the first account, closing sign-ups, backups, a restore and an update.
By Simon Vasconcelos Lee
Published on 4 December 202611 minute read
compose.example.yml: the Rails web server, the Sidekiq worker, PostgreSQL 16 and Redis, with a small compose.override.yml that publishes the app on 127.0.0.1 behind an HTTPS reverse proxy.SECRET_KEY_BASE, the database password and your own three encryption keys into a .env file readable by root only, and keep that file safe.backup service (database, uploaded files and configuration), restore with the same tool, and update by changing SURE_IMAGE_TAG.Sure is a personal finance app written in Ruby on Rails. It continues the code of Maybe Finance, which its company open-sourced and then stopped developing; a community now maintains it and publishes a release every month. You reach it from a browser, and the project also ships mobile apps, a macOS desktop app and an API.
Sure is published under the GNU Affero General Public License, version 3 (AGPL-3.0). You can use it free of charge, for yourself, your family, your association or your company, copy it and modify it. If you modify it and let other people use your modified version over a network, you must offer them its source code under the same license. The software is provided without warranty.
The project adds one request of its own: a fork must not use the name “Maybe” or its logo, which remain trademarks of Maybe Finance Inc. Running the official image, as in this guide, raises no such question.
The Docker guide of the project says Sure runs in 512 MB, with about 352 MB used in steady state, and asks for at least 1 GB with the AI features. That figure is for the application alone. Here is what we measured on our test VPS, with the four services of the Compose file running:
Server size therefore depends on your history and on the other applications you run beside Sure. On a managed VPS, tell us about your usage and we will recommend the right size.
Sure ships as one image, ghcr.io/we-promise/sure, which runs both the web server and the Sidekiq worker; PostgreSQL and Redis run beside them. On a server with Docker Engine and its Compose plugin, installed from Docker’s repository for Ubuntu, create a folder and download the Compose file of the release you install, as the project’s Docker guide does:
mkdir -p /opt/sure
cd /opt/sure
curl --fail --location --silent --show-error --output compose.yml https://raw.githubusercontent.com/we-promise/sure/v2026.11.30/compose.example.yml
Leave that file as it is, so that you can replace it with the next release’s. Your changes go in a compose.override.yml next to it, which Docker Compose reads on its own:
x-sure-env: &sure_env
SECRET_KEY_BASE: ${SECRET_KEY_BASE:?set SECRET_KEY_BASE in .env}
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY: ${ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY:?set it in .env}
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY: ${ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY:?set it in .env}
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT: ${ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT:?set it in .env}
RAILS_ASSUME_SSL: "true"
services:
web:
ports: !override
- "127.0.0.1:${PORT:-8121}:3000"
environment: *sure_env
worker:
environment: *sure_env
127.0.0.1: the reference file publishes port 3000 on every address of the server. !override replaces that line, so the app is reachable only through the reverse proxy. It uses PORT from .env when set, 8121 otherwise, the port of our test VPS; the backup tool sets PORT when it rebuilds an instance beside a running one.RAILS_ASSUME_SSL tells Rails that the proxy in front serves HTTPS, as the Docker guide asks. The redirects of the app then point to https://.SECRET_KEY_BASE required: since 2026.11.30 the Compose file has no default value any more and refuses to start without one, as the :? of the override does. Generate your own on a new install; on an instance that already has data, keep the value it runs with.ACTIVE_RECORD_ENCRYPTION_* keys it derives them from SECRET_KEY_BASE; the Docker guide recommends your own, set before the first start.The secrets go in a .env file, readable by root only, with the image tag you install. Create it, and the folder for the backups, then start the stack:
umask 077
printf 'SURE_IMAGE_TAG=2026.11.30\nSECRET_KEY_BASE=%s\nPOSTGRES_PASSWORD=%s\n' "$(openssl rand -hex 64)" "$(openssl rand -hex 24)" > .env
printf 'ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=%s\nACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=%s\nACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" >> .env
mkdir -p backups
umask 022
docker compose up -d
docker compose ps
SURE_IMAGE_TAG, the file uses stable, which moves to each new release at the next pull. A full version lets you choose when each update happens.sure_production and the user sure_user..env file with your backups: without SECRET_KEY_BASE and the three keys, the encrypted data in the database can no longer be read. Never generate new values for an instance that already has data.OPENAI_ACCESS_TOKEN that Docker Compose prints on each command is harmless: that variable is only needed for the AI assistant.The web container prepares the database on its first start; on our test VPS, Sure answered within about fifteen seconds. To check that it responds:
curl -s -o /dev/null -w "%{http_code}\n" http://127.0.0.1:8121/up
The answer is 200 once the app has booted.
Since 2026.11.30, the app writes a [SECURITY] warning to its logs until the encryption conversion has run once, even on a new instance with your own keys. The conversion uses the keys already in .env and does not change them. Stop the app, preview the conversion, run it, then start the app again:
docker compose stop web worker &&
docker compose run --rm web bin/rails "security:backfill_encryption[100,1]" &&
docker compose run --rm web bin/rails "security:backfill_encryption[100,0]" &&
docker compose up -d
1 makes the first run a preview that changes nothing; the 0 of the second one writes. The last line of each is a JSON report that shows "ok":true and "failed_count":0; on a failure, the && stop the sequence there and the app stays stopped. The failed_samples of the report name the rows at fault, and the command is safe to run again."ok":true and no failure, the warning was gone at the next start, and the account and its transaction were unchanged.The container serves Sure over HTTP. HTTPS is handled by a reverse proxy in front of it. We tested Caddy, installed from its official Debian and Ubuntu repository: it obtains the Let’s Encrypt certificate itself, renews it, and forwards the right headers by default.
sure.example.com {
reverse_proxy 127.0.0.1:8121
}
sudo systemctl reload caddy
curl -sI https://sure.example.com/
HTTP/2 302 to https://sure.example.com/registration/new, the sign-up page. On our test VPS, Caddy obtained the certificate in a few seconds, on its first reload.Sure has no default account, and sign-ups are open on a new instance. The first account created becomes the super admin of the instance. Create yours right after the first start:
We followed these steps in a real browser on our test VPS: a manual checking account of €2,500 and a transaction of €42.50, shown with the new balance of €2,457.50. The first user was recorded with the super_admin role.
Under “Settings”, “Self-Hosting”, the Onboarding setting chooses how other people join: “Open”, “Invite-only” with invite codes, or “Closed”. On a private instance, switch it to “Closed”: on our test VPS, a visitor sent to the sign-up page was taken to the login page, with “Signups are currently closed.”
A self-hosted instance never emails invitations, even with email set up: after you add a member, copy the invitation link from Settings, Profile Info and send it yourself. Password reset emails need an SMTP server, set with the SMTP_* and EMAIL_SENDER variables described in the Docker guide; they are sent by the worker, and each variable reaches the containers only once it is listed in the Compose environment, for example in your compose.override.yml.
The Compose file includes a backup service, which runs the same image as the app. It takes a full backup of the instance: the PostgreSQL database, the uploaded files of the app-storage volume, your .env and Compose files, a manifest with the version, and the checksums of it all.
docker compose run --rm backup create
docker compose run --rm backup list
umask 077. On our test VPS, each backup folder was created with mode 700, and db.dump, storage.tar.gz and the copy of .env with mode 600, inside the backups folder created with mode 700 above.backups/<version>/<date>-manual/, for example backups/2026.11.30/2026-12-04_071250-manual/ on our test VPS.docker compose --profile backup up -d backup starts the service in the background; it takes a backup at 02:00 UTC and keeps the scheduled ones for 7 days, settings you can change with BACKUP_SCHEDULE and BACKUP_KEEP_DAYS in .env.backup-offsite service, started with --profile backup-offsite, which copies the backup folder every hour to an rclone remote (S3, SFTP and others) set with BACKUP_DESTINATION.Stop the app, let the backup tool replace the database and the uploaded files, then start the app again:
docker compose stop web worker &&
docker compose run --rm backup restore latest --yes &&
docker compose up -d
&& then stop the sequence there: the app stays stopped, and you run the restore again once the cause is fixed.latest or a name: latest takes the most recent backup; a name from backup list, such as 2026.11.30/2026-12-04_071250-manual, takes that one. Without --yes, the tool asks you to type restore.2026.11.30, the tag already in your .env.We tested the whole cycle on our VPS with these exact commands: a backup, a second transaction added after it, then the restore. The database was dropped and recreated, the account and the first transaction came back, the second one was gone, and the administrator signed in again with the same password. We also tried a copy whose dump we had truncated: with its old checksums, the tool refused it before touching the database; with the checksums recomputed, it stopped on “could not read from input file: end of file”, the app stayed stopped, and the restore of the good backup brought everything back.
Sure publishes a release every month, with hotfixes in between; since November 2026, releases carry their date (2026.11.30 is also tagged 0.7.7). Read the release notes, take a backup, download the Compose file of the new release, change the tag in .env, then pull the new image and recreate the containers. The database migrations run on their own when the web container starts:
docker compose run --rm backup create
curl --fail --location --silent --show-error --output compose.yml https://raw.githubusercontent.com/we-promise/sure/v2026.11.30/compose.example.yml
sed -i "s/^SURE_IMAGE_TAG=.*/SURE_IMAGE_TAG=2026.11.30/" .env
docker compose pull web worker
docker compose up -d
docker compose images web
web and worker, restore the backup taken just before the update, and put the previous tag back in .env.latest tag follows the alpha builds; stable follows the releases, 2026.11.30 today. A full version, as above, is the way to decide when you update.compose.example.yml, download the new file in place of compose.yml: your changes live in compose.override.yml and .env, which stay as they are. Compare the db service first: the next releases move to PostgreSQL 18, with a new image and a new data mount, which an existing PostgreSQL 16 database cannot use as it is. Keep the db service of your current file, or follow the PostgreSQL major version upgrade of the Docker guide before switching.Since 0.7.6, Sure sends anonymous product-improvement data about how some features are used. The release notes say self-hosters can turn it off with POSTHOG_FEEDBACK_ENABLED=false in the environment: add it under x-sure-env in your compose.override.yml, then run docker compose up -d.
Self-hosting means running the server on top of the application. On a managed VPS, our teams take charge of the server and proactively monitor your instance; Sure remains your software, with your accounts and your settings.
| Topic | Our teams | You |
|---|---|---|
| The server | System and security updates, server interventions included | The timing that suits you |
| Monitoring | Server monitored 24/7, with intervention without waiting for your call | Your accounts, your transactions and your budgets in Sure |
| Sure | Proactive monitoring: errors, slowdowns, database and disk space spotted, fix recommended | Its installation, updates, connections and settings, which you apply, yourself or through your AI assistant |
| Users | The server that carries them, monitored and backed up | Accounts, sign-ups and invitations |
| Backups | Every night, encrypted and kept off the machine; restores included | Sure’s own backups, and the restore request, when you need one |
| Migration | Your current server migrated, free of charge | The timing of the switch |
If you would rather have our teams work inside the application itself, that service is billed by the hour or at a fixed rate, with an estimate shared before the work starts.
With a Simafri Managed VPS, our teams keep your Sure instance’s server up to date, monitor it day and night and step in without waiting for your call; they also proactively monitor your instance and recommend useful fixes, which you apply, yourself or through your AI assistant. Backups are encrypted every night and kept off the machine, restores are included, and migrating your current server is free.
Yes. Sure is under the AGPL-3.0 license: you can run it for yourself, your family or your association with no license to buy. The optional AI assistant uses an API key of your own, billed by its provider. What remains is the cost of the server that runs it.
Download compose.example.yml from the release you install as compose.yml, add a compose.override.yml that publishes the app on 127.0.0.1 only and sets RAILS_ASSUME_SSL to true, generate SECRET_KEY_BASE, the database password and three encryption keys into a .env file, run docker compose up -d, and put an HTTPS reverse proxy in front.
Yes. Sure stores everything in PostgreSQL, and its Sidekiq worker uses Redis for background jobs such as imports, syncs and emails. The official Compose file runs both beside the web server and the worker.
There is none. Open your address and create an account: the first one becomes the super admin. Then set Settings, Self-Hosting, Onboarding to Closed on a private instance, and send invitation links yourself.
The project says the application runs in 512 MB. With PostgreSQL, Redis and the worker, our test VPS used about 1.1 GB in all, and the images take about 1.3 GB of disk.
Run docker compose run --rm backup create: the project’s backup service saves the database, the uploaded files and your configuration, readable by root only. To restore, stop web and worker and run docker compose run --rm backup restore latest --yes, which recreates the database empty and stops at the first error.
Read the release notes and take a backup, download the new release’s compose.example.yml as compose.yml, change SURE_IMAGE_TAG in .env, then run docker compose pull web worker and docker compose up -d. The database migrations run on their own when the web container starts.
A managed VPS covers the server: system, security, monitoring and backups. Our teams also proactively monitor your instance and recommend useful fixes, which you apply. Work inside the application is billed by the hour or at a fixed rate.
Simafri
Let's talk about your project
Tell us what you need in a few words: we will get back to you quickly.
Thank you! Your request has been sent. We'll get back to you shortly.
Prefer email? Write to us at support@simafri.com.