---
title: "Deploy Metabase [Updated September '26]"
description: "Metabase [September '26] (Dashboards, SQL & BI) Self Host"
category: "Analytics"
url: https://railway.com/deploy/metabase-updated-september-26
---

# Deploy Metabase [Updated September '26]

Metabase [September '26] (Dashboards, SQL & BI) Self Host

**[Deploy Metabase [Updated September '26] on Railway](https://railway.com/template/metabase-updated-september-26)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/metabase-updated-september-26/manifest.json

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

## Template content

### metabase/metabase

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

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

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

## Documentation

# Deploy and Host self hosted Metabase (Open-Source Business Intelligence Tool) on Railway

Metabase is an open-source business intelligence and analytics tool that lets anyone on your team ask questions of your data, build dashboards, and share insights without writing SQL. It connects to PostgreSQL, MySQL, BigQuery, Snowflake, and 20+ other databases, with a full SQL editor for analysts. This template runs the official `metabase/metabase` Docker image backed by PostgreSQL so you can self host Metabase as a Looker or Tableau alternative.

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

Self hosting Metabase keeps your queries, dashboards, and database credentials on infrastructure you control, with no per-seat fees on the open-source edition. Metabase stores its own settings, users, and saved questions in an application database, and the default embedded H2 file is not safe for production. On Railway this template pairs Metabase with a managed PostgreSQL service, and handles TLS, the domain, healthchecks, and restarts.

## Why Deploy Metabase, the Tableau alternative on Railway (Railway Free Trial)

Tableau and Looker charge per user, so costs rise every time you give another teammate access to data. Metabase Open Source is AGPL-3.0 licensed and free for unlimited users, so self hosting it costs only the container and database behind it. Railway bills for actual usage instead of fixed tiers, and gives every new user a $5 free trial on GitHub signup, enough to connect a real database and build your first dashboards.

### Railway vs Other Hosting Providers and VPS for Metabase self hosting

| Provider | What You Get with Railway | What You Get with the Other Provider |
| --- | --- | --- |
| **DigitalOcean** | One-click deploy with Postgres, HTTPS domain, and healthchecks | A droplet where you install Docker, Java tuning, certbot, and a proxy |
| **AWS** | Usage-based pricing with no ECS, RDS, or IAM wiring | Powerful services, but VPC, security groups, and load balancers to set up |
| **Heroku** | Persistent private networking and no dyno sleep limits | Simple deploys, but costly dynos and add-on Postgres pricing |

## Common Use Cases for hosted Metabase

Here are common use cases for the open-source business intelligence tool:

* Building company-wide KPI dashboards for revenue, signups, churn, and product usage straight from your production replica.
* Letting non-technical teams explore data with the visual query builder instead of filing SQL requests with engineering.
* Embedding charts and dashboards into internal admin panels or customer-facing apps using static embedding.
* Scheduling dashboard subscriptions and alerts to Slack or email so stakeholders get numbers without logging in.

## Dependencies for Metabase Docker hosted on Railway

Metabase runs as a single Java container plus a PostgreSQL application database. The data sources you analyze are separate and connected from the admin panel after setup.

### Deployment Dependencies for Managed Metabase Service (OSS BI Tool)

The template deploys two services: Metabase and PostgreSQL. Postgres stores users, permissions, saved questions, dashboards, and settings, so your work survives redeploys. Metabase itself is stateless once the application database is external, which means no volume is needed on the Metabase service. SMTP and Slack are optional for alerts.

### Implementation Details for Metabase (Using the official metabase/metabase image)

The template sets `MB_DB_TYPE=postgres` and points `MB_DB_HOST`, `MB_DB_PORT`, `MB_DB_DBNAME`, `MB_DB_USER`, and `MB_DB_PASS` at the Postgres service through Railway references. Set `MB_ENCRYPTION_SECRET_KEY` to a long random string so stored database credentials are encrypted, and keep it stable. Metabase listens on `MB_JETTY_PORT` (3000 by default) and ignores Railway's injected `PORT`, so set `MB_JETTY_PORT=3000` and target 3000 on the domain. Set `MB_SITE_URL` to your public domain, cap memory with `JAVA_OPTS=-Xmx1g`, use `/api/health` as the healthcheck, and pin a version tag, never `latest`.

## How does Metabase compare against other BI platforms

### Metabase vs Tableau (Tableau Alternative)
* **Cost Model:** Metabase Open Source is free for unlimited users, while Tableau charges per creator, explorer, and viewer license.
* **Ease of Use:** The visual query builder lets business users answer questions without training on a desktop authoring tool.

### Metabase vs Looker (Looker Alternative)
* **Setup Time:** Metabase connects to a database and produces charts in minutes, while Looker needs a LookML modeling layer first.
* **Hosting:** Metabase runs anywhere Docker runs, while Looker is tied to Google Cloud contracts.

### Metabase vs Apache Superset (Superset Alternative)
* **Operational Weight:** Metabase is one container plus Postgres, while Superset typically needs Redis, Celery workers, and more configuration.
* **Audience:** Metabase targets non-technical users first, while Superset leans toward SQL-savvy analysts.

### Metabase vs Power BI (Power BI Alternative)
* **Platform Freedom:** Metabase is browser-based and works on any OS, with no Windows desktop app or Microsoft 365 licensing required.

## How to use Metabase (the OSS business intelligence tool)?

After deploying, open your Railway domain and complete the setup wizard to create the first admin account. Add a data source under Admin settings, then Databases, entering the host, port, database name, and a read-only user. Click New, then Question, to build a query with the visual editor, or choose SQL query for raw SQL with variables. Save questions to collections, combine them into dashboards with filters, and invite teammates with group-based permissions.

## How to self host Metabase on other VPS Services (Metabase self hosting guide)

### Clone the Repository
Download **Metabase** from [GitHub](https://github.com/metabase/metabase) or pull `metabase/metabase` from Docker Hub.

### Install Dependencies
Ensure your VPS has **Docker**, a PostgreSQL database for application data, and Nginx or Caddy to terminate TLS.

### Configure Environment Variables
Set up the instance configuration such as:
* `MB_DB_TYPE`
* `MB_DB_CONNECTION_URI`
* `MB_ENCRYPTION_SECRET_KEY`
* `MB_SITE_URL`
for the application database, credential encryption, and public links.

### Start the Metabase Application
Run `docker run -d -p 3000:3000 -e MB_DB_TYPE=postgres -e MB_DB_CONNECTION_URI=... metabase/metabase` and point the proxy at port 3000.

## Official Pricing of Metabase (Metabase pricing)
Metabase Open Source is **free** under AGPL-3.0, with unlimited users, dashboards, and questions when self hosted. Metabase Cloud Starter costs about $100 per month for 5 users plus $6 per extra user. Pro costs about $575 per month for 10 users plus $12 per extra user and adds SSO, row-level permissions, and white-label embedding. Enterprise starts around $20,000 per year.

## Metabase cloud vs self hosted comparison (Pricing, features, costs, and more)
Metabase Cloud gives you hosting, upgrades, and backups for a base fee that grows with every user you add. Self hosting the open-source edition removes seat pricing, keeps queries inside your network, and lets you size the JVM to your workload. The trade-off is that upgrades and Postgres backups become your job, which Railway eases with managed databases and one-click redeploys.

### Monthly cost of self hosting Metabase on Railway
The Metabase self hosting cost on Railway is typically $10-$25/month for a small team, covering the Java container and the Postgres application database, with no per-user charges.

### System Requirements for Hosting Metabase on a VPS
Metabase needs at least 1 vCPU and 2GB RAM, since the JVM alone uses around 1GB. Add memory as concurrent users grow.

## Frequently Asked Questions (FAQs)

### What is Metabase self hosted?
Metabase self hosted means running the open-source Metabase server yourself, on Railway, Docker, or a VPS, rather than Metabase Cloud, so your dashboards and credentials stay under your control.

### How much does Metabase self hosting cost on Railway?
The Metabase self hosting cost on Railway is usually $10-$25/month depending on usage, covering the Metabase container and its Postgres database.

### Is Metabase free to use?
Yes, Metabase Open Source is free under AGPL-3.0 with unlimited users. You only pay for the infrastructure that runs it, such as Railway or a VPS.

### Why does Metabase need PostgreSQL instead of H2?
The embedded H2 database can corrupt and is lost on redeploy. PostgreSQL keeps your dashboards safe and is the recommended production setup.

### Where can I download Metabase?
You can get Metabase from the official [Metabase GitHub](https://github.com/metabase/metabase) repo or the `metabase/metabase` image on Docker Hub, or deploy it on Railway with one click using this template.

### What are some alternatives to Metabase?
Popular alternatives include Tableau, Looker, Power BI, Apache Superset, and Redash, though Metabase stands out for its no-code query builder and simple setup.


## Similar templates

- [Typesense vs Meilisearch](https://railway.com/deploy/typesense-vs-meilisearch) — self-hosted Typesense vs Meilisearch
- [Betterlytics](https://railway.com/deploy/betterlytics) — Betterlytics is a cookieless analytics platform GDPR-compliant.
- [Finance Tracker](https://railway.com/deploy/finance-tracker-1) — Private multi-user household finance ledger with budgets and CSV import.

Open this page in a browser: https://railway.com/deploy/metabase-updated-september-26
