---
title: "Deploy Metabase BI with PostgreSQL"
description: "SQL dashboards with private Postgres and encrypted connection credentials."
category: "Analytics"
url: https://railway.com/deploy/metabase-bi-with-postgresql
---

# Deploy Metabase BI with PostgreSQL

SQL dashboards with private Postgres and encrypted connection credentials.

**[Deploy Metabase BI with PostgreSQL on Railway](https://railway.com/template/metabase-bi-with-postgresql)**

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

- **Creator:** dankeewithtwoes's Projects
- **Category:** Analytics

## Template content

### Metabase

- **Image:** metabase/metabase@sha256:3b968d64944840ec0ed452a94fb58301a0a8d8e4fe6d632a5956014a91a2b635
- **Health check:** /api/health
- **Public domain:** Yes

### Postgres

- **Image:** postgres@sha256:ca0bd484cb98bf4b24eb1010e73fb3fcbd6714d240fbc1a10eea5b7dbecb641d

## Documentation

# Deploy and Host Metabase BI with PostgreSQL on Railway

SQL dashboards with private Postgres and encrypted connection credentials.

## About Hosting Metabase BI with PostgreSQL

Deploying this template creates Postgres, Metabase in your Railway project. The application receives an HTTPS domain automatically. Database and Redis services, when included, use private networking and generated credentials. Persistent data is stored on the included volumes or object storage, so application redeploys do not discard it.

## Why Deploy Metabase BI with PostgreSQL on Railway

- Official Metabase Open Source image.
- Private PostgreSQL stores questions, dashboards, users and configuration.
- Generated encryption key, automatic public URL and API health check.

## Common Use Cases

- Turn database queries into dashboards for a small team.
- Explore product, sales or operations data.
- Share saved questions and scheduled reports after configuring your data sources.

## Dependencies for Metabase BI with PostgreSQL

- A Railway account and a plan with capacity for 2 service(s).
- Included services: Postgres, Metabase.
- 1 persistent volume(s), provisioned by this template.
- External integrations, mail delivery and your own business data are configured after installation as needed.

## First launch

1. Allow a few minutes for the first JVM startup and schema initialization.
2. Open the generated domain and complete the administrator setup.
3. Connect the database or warehouse you want to analyze using a user with limited access.
4. Build a question and dashboard, then invite your team.

## Operations

The included PostgreSQL service is the Metabase application database, not a populated business dataset. Back it up and keep MB_ENCRYPTION_SECRET_KEY. Update MB_SITE_URL after switching to a custom domain. Enterprise features and external data sources are not bundled.

Images are pinned to verified upstream image digests captured on 2026-10-17. Review upstream release notes, back up persistent data and update the image deliberately when upgrading. Railway charges the deployer for running services, storage and network usage.

## Support and upstream

For Railway template wiring or deployment issues, use the discussion/support link on this template page. Include service names and redacted logs; omit passwords and tokens. Application documentation:

[Application database setup](https://www.metabase.com/docs/latest/installation-and-operation/configuring-application-database) · [Metabase source](https://github.com/metabase/metabase)


## Similar templates

- [Formbricks | Open-Source Typeform & Qualtrics Alternative](https://railway.com/deploy/formbricks-surveys) — Surveys, NPS and in-app feedback on your own Postgres, Hub and Cube
- [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

Open this page in a browser: https://railway.com/deploy/metabase-bi-with-postgresql
