---
title: "Deploy Self-Hosted BI"
description: "self-hosted BI platform on Railway"
category: "Analytics"
url: https://railway.com/deploy/self-hosted-bi
---

# Deploy Self-Hosted BI

self-hosted BI platform on Railway

**[Deploy Self-Hosted BI on Railway](https://railway.com/template/self-hosted-bi)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/self-hosted-bi/manifest.json

- **Creator:** onepush
- **Category:** Analytics

## Template content

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

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

### metabase/metabase

- **Image:** metabase/metabase
- **Public domain:** Yes

## Documentation

# Deploy and Host self hosted Metabase Self-Hosted BI (Open-Source BI) on Railway

Running your own BI stack sounds like a weekend project that becomes a part-time job. It doesn't have to.

## About Hosting Metabase Self-Hosted BI open-source software on Railway (self hosted Metabase template)

The first time I stood up Metabase on a bare VPS, I spent more time fighting systemd than writing a query. Railway removes that pain.

This template pairs Metabase with a companion Postgres service. That Postgres is the application database where Metabase stores dashboards, collections, saved questions, and admin settings.

Many people skip this distinction and get confused when dashboards disappear after a redeploy. Metabase can run on the embedded H2 database, but H2 lives inside the container filesystem.

The AGPL license matters too. You can run Metabase Self-Hosted BI forever without paying anyone for the core product. You operate it; you don't license it.

## Why Deploy Metabase Self-Hosted BI, the Tableau alternative on Railway (Railway Free Trial)

Tableau pricing starts around $75 per user per month for Creator seats, before server, gateway, or admin time. For five people, that's a real line item before a single chart.

Tableau wins on visual polish and advanced analytics — nested LOD expressions, parameterized actions, pixel-perfect client deliverables. Most internal reporting doesn't need that.

Railway's $5 GitHub trial credit lets you stand this up, poke at it, and decide before committing money. That's different from Tableau's sales-led evaluation with demos and pilot programs.

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 Self-Hosted BI 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.

### Railway vs Other Hosting Providers and VPS for Metabase Self-Hosted BI self hosting

| Provider | What you manage | Good for | Watch out for |
|---|---|---|---|
| DigitalOcean | Droplet, Postgres, reverse proxy, SSL certs, system updates | Cheap single-node setups | You own every failure mode; SSL renewal is a recurring chore |
| AWS | EC2, RDS, security groups, IAM, load balancer, CloudWatch | Enterprises with compliance requirements | Console is a full-time job; costs balloon with misconfigured resources |
| Hetzner | Dedicated server or cloud VM, Postgres, firewall | Bare-metal performance on a budget | EU datacenter focus; no managed Postgres integration as tight as Railway's |

## Common Use Cases for hosted Metabase Self-Hosted BI

A support team keeps asking the same fifteen questions about orders, refunds, or account history. Instead of running SQL by hand, someone builds a collection of saved questions with filter widgets.

Another pattern is the weekly metrics dashboard for leadership. Revenue, active users, churn, ticket volume. Once the dashboard exists, it updates on schedule and people stop pinging analysts every Monday.

The SQL editor itself is a use case. Analysts who live in psql or DBeaver move to Metabase, save queries with meaningful names, and share them with teammates who don't speak SQL.

Data exploration without a data team. A PM who knows enough SQL to be dangerous can query the product database, visualize it, and share with engineering — no Jira ticket to the analytics queue.

Customer-facing embedded analytics is possible in OSS Metabase, but limited. Public links or signed parameters work; interactive embedding with per-customer row-level permissions is paid.

## Dependencies for Metabase Self-Hosted BI Docker hosted on Railway

You need the Metabase container and a Postgres database that survives redeploys. That's the whole architecture.

### Deployment Dependencies for Managed Metabase Self-Hosted BI Service (Business Intelligence)

Railway handles container orchestration, health checks, and restarts. You own configuration. The critical piece is Postgres: use `ghcr.io/railwayapp-templates/postgres-ssl`, PostgreSQL 17 works.

- `MB_DB_TYPE=postgres`
- `MB_DB_HOST` pointing at the Postgres service hostname
- `MB_DB_PORT=5432`
- `MB_DB_USER` and `MB_DB_PASS` from injected credentials
- `MB_DB_DBNAME` set to the database name Railway created

Two more matter. `MB_ENCRYPTION_SECRET_KEY` must stay stable across deploys; change it and every encrypted connection setting breaks.

### Implementation Details for Metabase Self-Hosted BI (Using Metabase official docker image)

Use the official `metabase/metabase` image. Pin a version like `v0.63.x` instead of `latest` to avoid surprise schema migrations mid-quarter.

First boot runs migrations against Postgres — takes a minute or two. Then the setup wizard asks for an admin account, site name, and optionally a data source. Analytics databases are separate from the app database.

## How does Metabase Self-Hosted BI compare against other hosted BI and self-hosted BI platforms

BI splits into expensive enterprise suites needing dedicated admins, and lightweight open-source tools doing 80% of the job for 5% of the cost.

### Metabase Self-Hosted BI vs Tableau (Tableau Alternative)

Tableau is a design tool as much as a BI tool. Visual grammar, dashboard interactivity, and mapping are unmatched. You pay in cash and operational complexity. Metabase wins on speed to first dashboard and cost.

### Metabase Self-Hosted BI vs Power BI (Power BI Alternative)

Power BI's pricing is friendlier than Tableau's, and Microsoft ecosystem integration is a real advantage if you live there. DAX is capable but a hurdle; most users learn it whether they want to or not.

### Metabase Self-Hosted BI vs Looker (Looker Alternative)

Looker is a modeling layer first, visualization second. LookML defines metrics and dimensions consistently, but you need someone who speaks LookML, and pricing starts high.

### Metabase Self-Hosted BI vs Metabase Cloud (Metabase Cloud Alternative)

Metabase Cloud is the same core product, managed by the vendor. Starter is about $85/month plus per-user fees; Pro is much higher for SSO, row-level permissions, and interactive embedding.

## How to use Metabase Self-Hosted BI (the OSS Business Intelligence)?

After the wizard, connect a real database via Admin → Databases. Choose your engine, enter details, test connection, save. Multiple databases show up in the data browser.

The query builder is beginner-friendly: pick a table, filter rows, choose columns, and Metabase generates SQL.

Sharing happens through links, email subscriptions, or embeds. Email subscriptions are useful: daily or weekly snapshots keep people informed without logging in.

## How to self host Metabase Self-Hosted BI on other VPS Services (Metabase Self-Hosted BI self hosting guide)

Railway is easy, but the same principles apply on a DigitalOcean droplet, AWS EC2, or Hetzner box. The manual route clarifies what Railway does for you.

### Clone the Repository

You don't clone the source code. Pull the Docker image: `docker pull metabase/metabase:latest` or a pinned version. Building from source is almost never needed; the Docker image is the supported path.

### Install Dependencies

Install Docker and Postgres. Use your VPS package manager to install Postgres, create a database and user for Metabase, note credentials.

### Configure Environment Variables

Create a Docker run command or `docker-compose.yml` with the same environment variables as on Railway: `MB_DB_*` block, `MB_ENCRYPTION_SECRET_KEY` (long random string, never change), `MB_SITE_URL`.

### Start the Metabase Self-Hosted BI Application

Run `docker compose up -d` and tail logs. First boot runs migrations; wait for the line that says listening on port 3000. Open your browser, complete the setup wizard.

## Official Pricing of Metabase Self-Hosted BI (Metabase Self-Hosted BI pricing)

Metabase OSS is free under AGPL. You can deploy, use internally, and modify it without paying.

## Metabase Self-Hosted BI cloud vs self hosted comparison (Pricing, features, costs, and more)

The pricing gap is the headline, but operational gap matters too. Metabase Cloud means the vendor handles upgrades, uptime, and security patching.

### Monthly cost of self hosting Metabase Self-Hosted BI on Railway

A small Metabase plus Postgres stack on Railway's Hobby plan typically runs $5–15/month, depending on container size, storage, and usage. Railway bills per minute, so costs fluctuate.

### System Requirements for Hosting Metabase Self-Hosted BI on a VPS

Metabase is a Java application; it likes RAM. Plan at least 1 GB for the container, 2 GB if many concurrent users or heavy dashboards. CPU is rarely the bottleneck; two vCPUs handle most small-team workloads.

## Frequently Asked Questions (FAQs)

### Does the Metabase application database need to be separate from my analytics database?

Yes, absolutely. The app database stores dashboards, saved questions, admin settings, and users. Analytics databases hold the data you're visualizing.

### What happens if I redeploy and my dashboards disappear?

You're almost certainly running on embedded H2 instead of Postgres. H2 lives inside the container filesystem and gets wiped on redeploy. Switch to the Postgres service, set `MB_DB_*` variables, and dashboards persist.

### Can I connect multiple databases to a single Metabase instance?

Yes. Metabase supports Postgres, MySQL, BigQuery, Snowflake, Redshift, MongoDB, and more simultaneously. Each appears in the data browser.

### Do I need to worry about the AGPL license for internal use?

No. AGPL is copyleft; it primarily affects you if you modify Metabase and offer it as a hosted service to others. Internal use, connecting to your databases, sharing dashboards with your team are all fine.

### How do I upgrade Metabase on Railway withou


## Similar templates

- [Typesense PHP](https://railway.com/deploy/typesense-php) — official PHP client against Railway
- [Typesense vs Meilisearch](https://railway.com/deploy/typesense-vs-meilisearch) — self-hosted Typesense vs Meilisearch
- [OSS Power BI Alternative](https://railway.com/deploy/oss-power-bi-alternative) — open-source Power BI alternative on Railway

Open this page in a browser: https://railway.com/deploy/self-hosted-bi
