
Deploy Lightdash BI
Self-hosted Lightdash BI with PostgreSQL and object storage.
Data
Lightdash PostgreSQL
Just deployed
/var/lib/postgresql/data
Lightdash Objects
Bucket
Just deployed
Application
Lightdash
Just deployed
Deploy and Host Lightdash BI on Railway
Run Lightdash 3.390.0 with private PostgreSQL and Railway object storage, with the first administrator created for you.
About Hosting Lightdash BI
Lightdash (source) is an open-source business intelligence application built around dbt semantic models. This Railway template runs the application, its metadata database, and S3-compatible result storage as one private graph.
On first boot the template creates an administrator and an organization before the public port opens, so nobody can claim a fresh deployment. Sign in with LIGHTDASH_ADMIN_EMAIL (default admin@lightdash.local) and the generated LIGHTDASH_ADMIN_PASSWORD from the Lightdash service's variables. Sign-up without an invite stays closed.
Why Deploy Lightdash BI on Railway
Railway generates the secrets, connects services over private networking, persists metadata on a volume, and exposes only the Lightdash web application, so the first useful workspace is available without assembling the infrastructure manually.
Common Use Cases
- Give analysts a browser-based interface over dbt models.
- Build governed charts and dashboards from an existing warehouse.
- Evaluate self-hosted Lightdash with persistent metadata and result storage.
Dependencies for Lightdash BI Hosting
The deployment uses Lightdash, PostgreSQL, pgvector, and a Railway Bucket.
Deployment Dependencies
- Lightdash 3.390.0 application image
- PostgreSQL 17 with pgvector and a persistent 5 GB volume
- Railway Bucket for cached query results and assets
Scheduled image and PDF delivery is not included, and Lightdash's product telemetry is turned off.
Upgrading from Template 1.0.0
Deployments from template 1.0.0 run Lightdash 1.107.0, which lets any unauthenticated request run code on the server (GHSA-x9v4-5wxh-c3w7, fixed in Lightdash 3.327.2). Railway does not update existing deployments, so follow the template's UPGRADE.md steps now:
- Back up PostgreSQL (a
pg_dumpof thelightdashdatabase) and, if you need cached results, the Bucket. - On the
Lightdashservice, set the image tolightdash/lightdash:3.390.0@sha256:5dace02c44962a97a0aae30dd1ea1e765c9940ef0374b6646822a65a445e3964. - Recommended: copy the start command from a fresh deployment of this template, replace
RUDDERSTACK_WRITE_KEYwithRUDDERSTACK_ANALYTICS_DISABLED=true(an empty write key never turned telemetry off), and addLIGHTDASH_ADMIN_EMAIL,LIGHTDASH_ADMIN_PASSWORD(16 to 128 printable ASCII characters, no spaces, with a letter and a digit or symbol) andLIGHTDASH_ORGANIZATION_NAME. Your organization already exists, so the start command only checks these and creates nothing; existing accounts and passwords are unchanged. - Deploy. The first boot runs the database migrations from 1.107.0; the health check allows 10 minutes.
- Sign in with your existing account, open an existing chart, run a new query, and save a chart.
Keep LIGHTDASH_SECRET: rotating it makes stored warehouse credentials unreadable. Going back to 1.x after the migrations is not supported; restore the backup instead.
Template Content
Lightdash PostgreSQL
pgvector/pgvector:pg17Lightdash
lightdash/lightdash:3.390.0Lightdash Objects
Bucket

