Railway

Deploy Maybe | Your Personal Finance Tracking, YNAB Alternative

Self Host Maybe. Track accounts, investments & budgets with AI features

Deploy Maybe | Your Personal Finance Tracking, YNAB Alternative

Maybe

Just deployed

/rails/storage

Just deployed

DBs

Just deployed

/data

/var/lib/postgresql/data

Maybe logo

Deploy and Host Maybe on Railway

Deploy Maybe on Railway to get a fully open-source personal finance dashboard running in minutes. Self-host Maybe with complete control over your financial data — no third-party SaaS, no subscription fees, and full privacy for your accounts, investments, and transactions.

This Railway template pre-configures Maybe with PostgreSQL for data persistence, Redis for background job queuing, and a dedicated Sidekiq worker for async processing. Everything is wired together with Railway's service references so the entire stack deploys as a single click.

Maybe Railway architecture

Getting Started with Maybe on Railway

After deployment completes, open the public URL for the Maybe service. You will be redirected to the registration page at /registration/new. Create your first account by entering your name, email, and a password — there are no default credentials to worry about.

Once registered, you land on the Maybe dashboard. Start by adding your financial accounts: bank accounts, credit cards, investment portfolios, loans, and crypto wallets. You can import transactions manually, upload CSV files, or connect via Plaid if you configure an API key. The dashboard immediately begins calculating your net worth, spending trends, and investment performance.

Maybe dashboard screenshot

About Hosting Maybe

Maybe is an open-source personal finance OS built with Ruby on Rails. Originally a venture-backed startup, Maybe was open-sourced under the AGPLv3 license and has become one of the most popular self-hosted finance tools on GitHub with over 40k stars.

Key features include:

  • Net worth tracking across all accounts (bank, investment, crypto, real estate)
  • Transaction management with categories, tags, rules, and CSV import
  • Investment portfolio monitoring with performance analytics and allocation views
  • AI-powered insights via optional OpenAI integration (chat with your finances, auto-categorization rules)
  • Multi-currency support with automatic exchange rate conversion
  • Budgeting tools for tracking income vs expenses
  • Sidekiq background workers for syncing accounts and running scheduled tasks

The architecture consists of four services: the Rails web app serving the UI on port 3000, a Sidekiq worker processing background jobs, PostgreSQL for relational data, and Redis as the job queue and cache layer.

Why Deploy Maybe on Railway

Railway makes self-hosting Maybe effortless:

  • One-click deploy with all four services pre-configured
  • Managed PostgreSQL and Redis with automatic backups
  • Persistent volume for file uploads and storage
  • No Docker or server administration required
  • Scales from hobby to production with Railway's usage-based pricing
  • Private networking keeps database traffic off the public internet

Common Use Cases for Self-Hosted Maybe

  • Personal net worth dashboard — aggregate all bank accounts, brokerages, and crypto wallets in one private view
  • Household financial planning — track shared expenses, budgets, and savings goals across multiple accounts
  • Investment portfolio analysis — monitor holdings, allocation, and returns without sharing data with third parties
  • Expense tracking and budgeting — categorize transactions with rules and AI to understand spending patterns

Dependencies for Maybe on Railway

  • Maybeghcr.io/maybe-finance/maybe:stable — main Rails web application
  • Workerghcr.io/maybe-finance/maybe:stable — Sidekiq background job processor
  • Postgres — Railway-managed PostgreSQL 18 — relational data store
  • Redis — Railway-managed Redis 8 — job queue and caching

Environment Variables Reference for Maybe

VariableServiceDescription
SECRET_KEY_BASEMaybe, WorkerRails session signing key (shared)
SELF_HOSTEDMaybe, WorkerEnables self-hosted mode
DB_HOSTMaybe, WorkerPostgreSQL hostname (internal)
REDIS_URLMaybe, WorkerRedis connection string with auth
OPENAI_ACCESS_TOKENMaybe, WorkerOptional — enables AI chat features
PORTMaybeHTTP listening port (3000)

Deployment Dependencies

Hardware Requirements for Self-Hosting Maybe

ResourceMinimumRecommended
CPU1 vCPU2 vCPU
RAM512 MB (web) + 256 MB (worker)1 GB (web) + 512 MB (worker)
Storage1 GB5 GB+ (grows with transaction history)
RuntimeDocker 20+Docker 24+ with Compose v2

Self-Hosting Maybe with Docker Compose

The quickest way to self-host Maybe is with Docker Compose. Download the example config and start all four services:

curl -o compose.yml https://raw.githubusercontent.com/maybe-finance/maybe/main/compose.example.yml
docker compose up -d

Open http://localhost:3000 and create your account. For production deployments, generate a strong SECRET_KEY_BASE:

openssl rand -hex 64

Set it in a .env file alongside your Postgres password:

SECRET_KEY_BASE=your_generated_key_here
POSTGRES_PASSWORD=your_secure_password_here

To update Maybe to the latest version:

docker compose pull && docker compose up --no-deps -d web worker

How Much Does Maybe Cost to Self-Host?

Maybe is 100% free and open-source under the AGPLv3 license. There are no paid tiers, no feature gates, and no telemetry. The only cost is your infrastructure — on Railway, this means usage-based pricing for compute, storage, and network.

Compared to commercial alternatives like YNAB ($109/year) or Monarch Money ($99.99/year), self-hosting Maybe on Railway typically costs $5-10/month depending on usage. You also get complete data ownership and privacy — your financial data never leaves your server.

Optional OpenAI integration incurs separate API costs when using AI-powered features like transaction chat and auto-categorization rules.

Maybe vs YNAB vs Monarch Money

FeatureMaybeYNABMonarch Money
PriceFree (self-hosted)$109/year$99.99/year
Open SourceYes (AGPLv3)NoNo
Self-HostableYesNoNo
Net Worth TrackingYesLimitedYes
Investment TrackingYesNoYes
AI FeaturesOptional (OpenAI)NoNo
Data PrivacyFull (your server)Third-partyThird-party
BudgetingYesYes (zero-based)Yes

Maybe offers the most comprehensive feature set for privacy-conscious users who want full control over their financial data without recurring subscription costs.

FAQ

What is Maybe and why self-host it on Railway? Maybe is an open-source personal finance application that tracks accounts, investments, transactions, and net worth. Self-hosting on Railway gives you complete data privacy — your financial information stays on your own infrastructure, not on a third-party SaaS platform.

What does this Railway template deploy for Maybe? This template deploys four services: the Maybe Rails web application (serving the dashboard UI), a Sidekiq worker (processing background jobs like account syncing), PostgreSQL (storing all financial data), and Redis (job queue and session caching). All services are connected via Railway's private networking.

Why does Maybe need PostgreSQL and Redis? PostgreSQL stores all persistent data — accounts, transactions, investment holdings, user profiles, and settings. Redis serves as the backend for Sidekiq (background job processing) and Rails caching. Without Redis, background tasks like scheduled account syncs and AI-powered categorization would not run.

How do I enable AI features in self-hosted Maybe on Railway? Set the OPENAI_ACCESS_TOKEN environment variable on both the Maybe and Worker services with a valid OpenAI API key. This enables AI-powered transaction chat, auto-categorization rules, and financial insights. Note that OpenAI API usage incurs separate costs based on your usage.

Can I import data from Mint or other finance apps into Maybe? Yes. Maybe supports importing Mint exports directly, as well as CSV imports for transactions from most banks and brokerages. After deploying, navigate to Settings and use the import tool to upload your data files.

How do I update Maybe to the latest version on Railway? Redeploy the Maybe and Worker services from the Railway dashboard. Railway will pull the latest ghcr.io/maybe-finance/maybe:stable image automatically. No manual Docker commands needed — just trigger a redeploy from the service settings page.


Template Content

More templates in this category

View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta
View Template
(v1) Simple Medusa Backend
Deploy an ecommerce backend and admin using Medusa

Shahed Nasser