---
title: "Deploy Sure"
description: "Self-hosted personal finance: net worth, budgets, transactions"
category: "Other"
url: https://railway.com/deploy/sure-1
---

# Deploy Sure

Self-hosted personal finance: net worth, budgets, transactions

**[Deploy Sure on Railway](https://railway.com/template/sure-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/sure-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### Sure https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/sure.png

- **Source:** https://github.com/aalfath/sure-railway-template
- **Health check:** /up
- **Public domain:** Yes

## Documentation

# Deploy and Host Sure on Railway

Sure is an open-source personal finance app, the community-maintained successor of Maybe Finance. It tracks accounts, net worth, transactions, budgets and investments in one place, with CSV imports, rules, reports and an optional AI assistant. You run it yourself, so your financial data stays in your own database.

## About Hosting Sure

Sure is a Ruby on Rails app that needs PostgreSQL, Redis and a Sidekiq worker for background jobs such as syncs, imports and exports. This template runs the official Sure image (version 0.7.6-hotfix.1, pinned by digest) from a small GitHub wrapper repo, with Railway Postgres and Redis on the private network. The web server and Sidekiq run in one service so they share a persistent volume for uploads and exports. Database migrations run on every boot. On first boot the template creates your admin account from the email you enter and a generated password, and public sign-up stays closed, so nobody else can claim your instance.

## Common Use Cases

* Track net worth across bank, credit card, loan, property and investment accounts
* Import transactions from CSV files, categorize them with rules and follow budgets
* Share a private household finance dashboard with family members by invitation

## Dependencies for Sure Hosting

* PostgreSQL (Railway Postgres)
* Redis (Railway Redis)

### Deployment Dependencies

* Sure source and releases: https://github.com/we-promise/sure
* Self-hosting guide: https://github.com/we-promise/sure/blob/main/docs/hosting/docker.md
* Template wrapper repo: https://github.com/aalfath/sure-railway-template

### Implementation Details

After deploy, open the `Sure` service's public URL and log in with the `ADMIN_EMAIL` you entered and the `ADMIN_PASSWORD` shown in the service's Variables tab, then change the password in the app. To let others join, invite them from Settings, or switch sign-up to "invite only" or "open" in Settings → Self-Hosting.

Optional features need extra variables on the `Sure` service: `SMTP_ADDRESS`, `SMTP_PORT`, `SMTP_USERNAME`, `SMTP_PASSWORD` and `EMAIL_SENDER` for email; `OPENAI_ACCESS_TOKEN` (or another LLM provider) for the AI assistant; `TWELVE_DATA_API_KEY` for exchange rates and stock prices. Keep `SECRET_KEY_BASE` unchanged after setup, because it encrypts stored credentials.

## Why Deploy Sure on Railway?


Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Sure on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/sure-1
