Deploy Sure
Before using the one-click template, here is a minimal Docker Compose example for self-hosting Sure.
If you're new to Docker Compose, check out our guide on how to self-host a Docker Compose app. More stacks are in our Docker Compose library.
Self-host Sure with Docker Compose (minimal)β
services:
web:
image: ghcr.io/we-promise/sure:stable
ports:
- "3000:3000"
environment:
SECRET_KEY_BASE: changeme_generate_a_long_random_hex_string
DB_HOST: db
DB_PORT: 5432
POSTGRES_DB: sure_production
POSTGRES_USER: sure_user
POSTGRES_PASSWORD: changeme
REDIS_URL: redis://redis:6379/1
SELF_HOSTED: "true"
depends_on:
- db
- redis
worker:
image: ghcr.io/we-promise/sure:stable
command: bundle exec sidekiq
environment:
SECRET_KEY_BASE: changeme_generate_a_long_random_hex_string
DB_HOST: db
DB_PORT: 5432
POSTGRES_DB: sure_production
POSTGRES_USER: sure_user
POSTGRES_PASSWORD: changeme
REDIS_URL: redis://redis:6379/1
SELF_HOSTED: "true"
depends_on:
- db
- redis
db:
image: postgres:16
environment:
POSTGRES_DB: sure_production
POSTGRES_USER: sure_user
POSTGRES_PASSWORD: changeme
redis:
image: redis:latest
Sure requires the same SECRET_KEY_BASE on both the web and worker processes β the Sidekiq worker needs it to decrypt data written by the web app. Hostim's one-click template runs both processes in a single container so this is handled for you automatically.
Deploy Sure on Hostim.dev (One-Click)
Sure is an open-source, self-hosted personal finance and budgeting app β track accounts, net worth, and spending without handing your financial data to a third party. With Hostim.dev, you can deploy Sure with Docker, managed PostgreSQL and Redis in one click β complete with automatic domain and HTTPS.
π° Your money, your data, your server.
Guest project runs for 1 hour. Log in to save and extend to 5 days.
Why Host Sure on Hostim.dev?β
- One-click Docker deployment
- Managed PostgreSQL and Redis, no setup required
- Background job processing (Sidekiq) runs alongside the app automatically
- Automatic HTTPS and domain
- Real-time logs and metrics
- Fully self-hosted and private
What's includedβ
| Resource | Details |
|---|---|
| App | ghcr.io/we-promise/sure Docker image, web + Sidekiq worker in one container |
| Database | Managed PostgreSQL |
| Cache | Managed Redis |
| Volume | /rails/storage |
| Domain | Free *.hostim.dev subdomain |
| SSL | Let's Encrypt (auto-enabled) |
| Port | 3000 |
How to Deployβ
- Go to your Hostim.dev dashboard.
- Click Create Project β Use a Template.
- Select Sure.
- Choose a resource plan.
- Deploy.
- Open your app's domain and create your first account.
FAQβ
Does Sure run background jobs?
Yes β account syncs, imports, and scheduled tasks run via Sidekiq, which starts automatically alongside the web server in the same container.
Where is my financial data stored?
In the managed PostgreSQL database, plus any uploaded files in the
/rails/storage
volume. Nothing is sent to a third-party service unless you
enable optional integrations (like AI features).
Can I connect bank accounts?
Sure supports manual account tracking and optional data-provider integrations β check the app's settings after deploying for what's configured.
Is the AI assistant enabled by default?
No. AI features require an external API token that isn't set by default β the app works fully without it.
How do I back up Sure?
Back up the managed PostgreSQL database and the /rails/storage volume.
How do I update Sure?
Docker: docker compose pull && docker compose up -d
Hostim.dev: redeploy the app.
Alternativesβ
- Actual Budget β simpler, envelope-budgeting focused
- Firefly III β mature, more manual bookkeeping-style tool
- Spreadsheets β the thing you're trying to stop using
Source + Docsβ
- GitHub: https://github.com/we-promise/sure
- Documentation: https://github.com/we-promise/sure/blob/main/docs/hosting/docker.md
Looking for something else? Browse all templates β