Deploy Metabase Serialization

export/import dashboards as YAML

Deploy Metabase Serialization

metabase/metabase

metabase/metabase

Just deployed

/var/lib/postgresql/data

Deploy and Host self hosted Metabase Serialization (Open-Source BI) on Railway

Metabase Serialization is a Pro/Enterprise feature, not an OSS switch. YAML export/import for collections, dashboards, and settings lives behind a license check inside the JAR. This Railway template runs OSS metabase/metabase: full open-source BI, no serialization.

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

If you came for java -jar metabase.jar export or /api/ee/serialization/*, stop. Those endpoints are Pro/Enterprise only; OSS returns 404 or a license prompt. This listing still gives you a production OSS BI stack—Postgres-backed app DB, questions, dashboards, and collections—ready if you later add a license on a Pro/Enterprise JAR.

Why Deploy Metabase Serialization, the Looker alternative on Railway (Railway Free Trial)

Looker’s LookML is native code, diffable to the field level. Metabase serialization exports dashboards and questions as YAML, but query definitions stay wrapped in Metabase’s internal card format—readable and versionable, but not a modeling language.

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 Metabase Serialization 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 Serialization self hosting

Metabase needs a real Postgres for app state; lose it and every dashboard, collection, and permission setting disappears. Railway pairs Metabase with a managed Postgres on a private network—no manual compose or backup scripts.

ProviderMetabase Serialization self-hosting experiencePostgres handlingBackup storyCost for small Metabase + Postgres
DigitalOceanDroplet or App Platform, manual Postgres pairing, manual snapshotsManaged DB or self-managed, extra configManual snapshots, droplet backups$12–24/mo typical
AWSECS or EC2, IAM/VPC overhead, RDS for Postgres, CloudWatch logsRDS solid but pricey at small scaleRDS automated snapshots, heavy setup$30–60/mo small stack
HetznerBare metal or cloud VM, full control, you manage Postgres and backupsSelf-managed, no small-scale managed optionManual pg_dump or borg, your problem€8–15/mo, cheapest raw compute

Common Use Cases for hosted Metabase Serialization

Staging-to-production: build dashboards in staging, export YAML, import into production. Multi-client BI: agencies export a base collection once and import into each new Metabase instance.

Dependencies for Metabase Serialization Docker hosted on Railway

The only non-negotiable dependency is Postgres on the private network. No Redis, no queue, no object storage for basic OSS. Official metabase/metabase on port 3000, health at GET /api/health.

Deployment Dependencies for Managed Metabase Serialization Service (Business Intelligence)

Two managed pieces: Metabase and companion Postgres (ghcr.io/railwayapp-templates/postgres-ssl, v17). You do not get managed serialization—that’s Metabase’s commercial feature. You do get managed Railway Postgres backups for the app DB.

Implementation Details for Metabase Serialization (Using Metabase official docker image)

Critical env vars:

  • MB_DB_TYPE=postgres — production app database; never use embedded H2, which is wiped on redeploy.
  • MB_DB_HOST, MB_DB_PORT, MB_DB_USER, MB_DB_PASS, MB_DB_DBNAME — from Railway Postgres variables.
  • MB_ENCRYPTION_SECRET_KEY — encrypts saved database credentials at rest.

First boot runs migrations, then the setup wizard. Serialization stays unavailable on this OSS image without a Pro/Enterprise license.

How does Metabase Serialization compare against other GitOps / versioned BI platforms

GitOps BI splits into native-version-control tools (Looker, Evidence.dev, Holistics) and bolt-on enterprise features (Metabase, partially Superset).

Metabase Serialization vs Looker (Looker Alternative)

Looker’s LookML is source of truth; git is built-in. Metabase exports state as YAML, but the app DB stays source of truth—UI edits stale YAML until next export. Looker wins GitOps purity; Metabase wins cost and accessibility.

Metabase Serialization vs Evidence.dev (Evidence.dev Alternative)

Evidence.dev builds dashboards from Markdown and SQL; the repo is the dashboard—no app DB, no export step. Metabase can’t match that purity.

Metabase Serialization vs Holistics (Holistics Alternative)

Holistics versions data modeling with transparent pricing. Metabase serialization versions dashboards, questions, collections—not the data model. Holistics wins model versioning; Metabase wins connectors and ad-hoc ease.

Metabase Serialization vs Apache Superset (Apache Superset Alternative)

Superset export/import via API and superset-cli (JSON, not YAML). Metabase Pro YAML diffs better. On OSS, neither has great serialization—manual recreation or DB copies.

How to use Metabase Serialization (the OSS Business Intelligence)?

On this OSS image, serialization CLI and /api/ee/serialization/* are absent; java -jar metabase.jar export / import fail with a license error. Pro/Enterprise on a licensed JAR exports YAML for collections, dashboards, questions, and settings; the license token is excluded from exports; imports create or overwrite and never delete. Until then, use the UI and Railway Postgres backups.

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

On a bare VPS you manage two services plus networking, persistence, and backups. More manual than Railway.

Clone the Repository

Metabase doesn’t ship a deployment repo; use the Docker image or JAR. On a VPS, write docker-compose.yml with metabase/metabase + Postgres, or download the JAR. No product git clone.

Install Dependencies

Only dependency: running Postgres plus Docker or Java 11+ runtime. Docker compose handles both services; JAR requires a separate Postgres install and user/database creation.

Configure Environment Variables

Same env vars as Railway: MB_DB_TYPE=postgres plus connection details, MB_ENCRYPTION_SECRET_KEY, MB_SITE_URL. Put them in .env or systemd. Keep the DB port closed to the public.

Start the Metabase Serialization Application

Docker: docker compose up -d. JAR: java -jar metabase.jar foreground; use systemd/supervisor. First boot runs migrations, shows the setup wizard on port 3000. Experience is identical to Railway.

Official Pricing of Metabase Serialization (Metabase Serialization pricing)

Metabase OSS is free under AGPL, with no serialization. Metabase Cloud Starter runs about $100/mo plus per-user; Pro (serialization, SSO, row-level permissions, interactive embedding) is much higher, talk to sales for a quote.

Metabase Serialization cloud vs self hosted comparison (Pricing, features, costs, and more)

The decision is less cloud vs self-hosted, more OSS vs Pro/Enterprise—serialization follows license, not hosting. Cloud Starter (~$100/mo) is managed but has no serialization; Cloud Pro adds it at a higher price.

Monthly cost of self hosting Metabase Serialization on Railway

A small Metabase + Postgres stack on Railway typically runs $5–15/mo on Hobby. The $5 GitHub trial covers roughly the first month. A Pro license later adds Metabase cost on the same Railway compute; serialization then becomes available.

System Requirements for Hosting Metabase Serialization on a VPS

Single-node OSS with a handful of users: 1–2 vCPUs, 2–4 GB RAM, plus 20 GB disk for the app Postgres (separate from analytics storage). Postgres 17 works; Java 11+ for the JAR. Serialization adds little runtime cost.

Frequently Asked Questions (FAQs)

Can I use Metabase serialization on the OSS version deployed via this Railway template?

No. Serialization CLI and /api/ee/serialization/* endpoints are Pro/Enterprise features gated by a license check in the JAR. OSS doesn’t enable them.

What exactly does the serialization export include?

On Pro/Enterprise, export produces YAML files with collections, dashboards, questions, and settings. License token is excluded. Import creates or overwrites matching items but never deletes anything missing from YAML—a gotcha for teams expecting git to be authoritative.

Why does Metabase need Postgres instead of the embedded H2 database?

H2 is wiped on every container redeploy; dashboards and permissions disappear on restart. Postgres persists. This is Metabase’s documented production requirement. MB_DB_TYPE=postgres switches off H2.

What’s the difference between the Metabase app database and my analytics databases?

The app Postgres stores Metabase state: users, permissions, dashboards, collections, settings. Analytics databases (Postgres, MySQL, BigQuery, etc.) hold the actual data you query, connected after setup via Admin → Databases.

Is there a way to get version-controlled dashboards on OSS without paying for Pro?

Partially. Regular Metabase API endpoints /api/card/:id and /api/dashboard/:id return JSON definitions; commit them to git as a manual stopgap. Not YAML, not collection-scoped, no settings—but human-diffable. Full GitOps needs Pro/Enterprise.

Can I run multiple Metabase instances on Railway for staging and production?

Yes. Deploy two Metabase services, each with its own Postgres companion. Without Pro serialization you promote content manually or clone the app DB carefully. You cannot run a multi-node Metabase cluster—OSS doesn’t support horizontal scaling.


Template Content

More templates in this category

View Template
NEW
Formbricks | Open-Source Typeform & Qualtrics Alternative
Surveys, NPS and in-app feedback on your own Postgres, Hub and Cube

Two Workspaces
2
View Template
Typesense PHP
official PHP client against Railway

onepush
0
View Template
Typesense vs Meilisearch
self-hosted Typesense vs Meilisearch

onepush
0