
Deploy Metabase - Open source AI Analytics
Deploy and Host Metabase - Open source AI Analytics with Railway
Metabase
Just deployed
Just deployed
/var/lib/postgresql/data
Deploy and Host Metabase on Railway
Self-host Metabase Open Source for SQL questions, charts and dashboards, with a PostgreSQL application database included.
About Hosting Metabase
The template contains Metabase using metabase/metabase:latest and Postgres using the PostgreSQL 17 image channel. Metabase’s MB_DB_* variables already reference the included Postgres database. This database stores Metabase accounts, questions and dashboard settings; it does not automatically contain your business data.
First deployment: required steps
- Deploy and allow Postgres initialization and Metabase migrations to complete.
- Open the generated HTTPS domain on
Metabaseand complete the setup wizard promptly, creating the first administrator with a strong password. - Connect the database or other supported data source you want to analyze, using credentials with the permissions you intend to grant. This is separate from the preconfigured application database.
- Create a question/dashboard and check access permissions before inviting other users.
Already configured
You do not need to deploy another Postgres instance for Metabase metadata, manually set the included MB_DB_* references, run Docker commands, create an H2 database, supply a shared default admin login or add a custom domain. Database credentials and the generated HTTPS site URL are supplied by the template.
Optional setup includes custom domains, outbound email for subscriptions/alerts, external authentication and additional data sources. If you change the public domain, update MB_SITE_URL to the new HTTPS origin.
Common Use Cases
- Explore data with SQL questions and supported graphical tools.
- Build operational dashboards and share them with authorized users.
- Connect multiple supported data sources for reporting.
Dependencies for Metabase Hosting
PostgreSQL and its persistent volume are included for Metabase application metadata. Additional analytics databases, credentials and mail-provider settings are user supplied.
Deployment Dependencies
- A Railway account with resources for the Java application, Postgres and volume.
- Network access and suitable credentials for the data sources you add.
- Official Docker installation documentation, upgrade guidance, and Metabase source and license.
Why Deploy Metabase on Railway
This template connects the Open Source application to its persistent metadata database and supplies a public HTTPS domain. Feature availability follows the deployed Open Source edition; this template does not bundle a Pro/Enterprise license or promise paid AI, white-label or enterprise access-control features.
Versions, backups and costs
The generic listing intentionally uses the floating latest application image. A new deployment may pull a newer release; an already-running instance is not automatically updated. Before upgrading an existing database, back it up, review upstream migration requirements and consider pinning a tested image version. This template does not configure automatic horizontal scaling or high availability.
Back up Postgres and independently protect connected source databases. The saved Postgres service has a public TCP proxy; review whether external access is needed. Generated database credentials must remain private. Railway charges for the application, Postgres, volume and network usage, including baseline use while idle.
Documentation checked against the saved template on 1 November 2026. No Metabase deployment or new functional certification was performed during this documentation review. Existing installations remain unchanged.
Template Content
