Self-host Sure with Docker
A privacy-first personal finance app for tracking net worth, budgets, and investments across every account.
This page describes the Levelrail template for Sure (Finance). It deploys the services below as one Docker Compose app on your own server.
Project site: https://github.com/we-promise/sure.Recommended memory: about 1024 MiB.
Services, ports and volumes
| Service | Image | Container ports | Volumes |
|---|---|---|---|
postgresql | postgres:16-alpine | none | sure_postgresql_data -> /var/lib/postgresql/data |
valkey | valkey/valkey:8-alpine | none | sure_valkey_data -> /data |
web | ghcr.io/we-promise/sure:0.6.7 | 3000 | sure_app_storage -> /rails/storage |
worker | ghcr.io/we-promise/sure:0.6.7 | none | sure_app_storage -> /rails/storage |
Environment variables
| Service | Variable | Value |
|---|---|---|
postgresql | POSTGRES_DB | Preset in the template |
postgresql | POSTGRES_PASSWORD | Generated at deploy |
postgresql | POSTGRES_USER | Preset in the template |
web | APP_DOMAIN | Preset in the template |
web | DB_HOST | Preset in the template |
web | DB_PORT | Preset in the template |
web | ONBOARDING_STATE | Preset in the template |
web | POSTGRES_DB | Preset in the template |
web | POSTGRES_PASSWORD | Generated at deploy |
web | POSTGRES_USER | Preset in the template |
web | RAILS_ASSUME_SSL | Preset in the template |
web | RAILS_FORCE_SSL | Preset in the template |
web | REDIS_URL | Preset in the template |
web | SECRET_KEY_BASE | Generated at deploy |
web | SELF_HOSTED | Preset in the template |
worker | DB_HOST | Preset in the template |
worker | DB_PORT | Preset in the template |
worker | POSTGRES_DB | Preset in the template |
worker | POSTGRES_PASSWORD | Generated at deploy |
worker | POSTGRES_USER | Preset in the template |
worker | REDIS_URL | Preset in the template |
worker | SECRET_KEY_BASE | Generated at deploy |
worker | SELF_HOSTED | Preset in the template |
Passwords and keys marked as generated are created for you when the app is deployed and stored as secrets. Values are not shown here.
Deploy Sure with Levelrail
In the dashboard, open Apps, choose New app, then Browse templates, and select Sure. Review the Compose body and deploy.
With the CLI:
levelrail-cli templates deploy sure --name my-sureSee Service template catalog for how templates work, and Getting started if you have not installed Levelrail yet.
More Finance templates
All templates are listed in the self-host gallery.