Self-host Sure on a managed VPS: your personal finance app

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.

Simon Vasconcelos Lee By Published on 4 December 202611 minute read

All guides CRM, ERP and finance

In short

  1. The AGPL-3.0 license lets you run Sure for yourself, your family or your association with no license to buy; the optional AI assistant uses an API key of your own.
  2. Install it with the project’s own 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.
  3. Generate 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.
  4. The first account becomes the super admin; then set Settings, Self-Hosting, Onboarding to “Closed” on a private instance.
  5. Back up with the project’s backup service (database, uploaded files and configuration), restore with the same tool, and update by changing SURE_IMAGE_TAG.

What Sure does

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.

What the AGPL-3.0 license allows

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 resources to plan for

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.

Installing with Docker Compose

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:

Terminal
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:

compose.override.yml
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

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:

Terminal, in /opt/sure
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

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:

Terminal
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.

Encrypting the remaining fields

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:

Terminal, in /opt/sure
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

HTTPS: the reverse proxy

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.

/etc/caddy/Caddyfile
sure.example.com {
	reverse_proxy 127.0.0.1:8121
}
Terminal
sudo systemctl reload caddy
curl -sI https://sure.example.com/

The first account and sign-ups

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:

  1. Open your address: Sure shows “Welcome to Self Hosted Sure!” and the sign-up form.
  2. Enter your email address and a password of at least 8 characters, with upper and lower case letters, a number and a special character, then click “Create account”.
  3. Fill in your profile: first and last name, household name and country, then your preferences (language, currency, date format) and, on the last step, the tools you used before and how you want to use the AI assistant.
  4. You land on the dashboard. Add an account under “New asset”, for example a cash account entered by hand with its balance, then your transactions under “Transactions”.

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.

Closing sign-ups

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.

Backups

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.

Terminal, in /opt/sure
docker compose run --rm backup create
docker compose run --rm backup list

Restoring

Stop the app, let the backup tool replace the database and the uploaded files, then start the app again:

Terminal, in /opt/sure
docker compose stop web worker &&
docker compose run --rm backup restore latest --yes &&
docker compose up -d

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.

Updates

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:

Terminal, in /opt/sure
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

Product monitoring

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.

Who does what on a managed VPS

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.

TopicOur teamsYou
The serverSystem and security updates, server interventions includedThe timing that suits you
MonitoringServer monitored 24/7, with intervention without waiting for your callYour accounts, your transactions and your budgets in Sure
SureProactive monitoring: errors, slowdowns, database and disk space spotted, fix recommendedIts installation, updates, connections and settings, which you apply, yourself or through your AI assistant
UsersThe server that carries them, monitored and backed upAccounts, sign-ups and invitations
BackupsEvery night, encrypted and kept off the machine; restores includedSure’s own backups, and the restore request, when you need one
MigrationYour current server migrated, free of chargeThe 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.

Sure, on a server run for you

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.

Explore Managed VPS

Frequently asked questions

Is Sure 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.

How do I install Sure with Docker Compose?

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.

Does Sure need PostgreSQL and Redis?

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.

What is the default Sure login?

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.

How much memory does Sure need?

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.

How do I back up Sure?

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.

How do I update Sure?

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.

Does a managed VPS cover Sure?

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.

Contact us