Self-host Redash on a VPS
Connect data sources, write SQL and build shareable dashboards. Runs the Redash web server, a query worker and a scheduler with a bundled PostgreSQL and Redis, persistent volumes and generated secrets. Create the first admin account on first visit.
levelrail-cli templates deploy redash --name my-redashSpecification
- Status
- Listed
- Category
- Analytics
- Services
- postgres, redash, redis, scheduler, worker
- Ports
- 5000
- Volumes
- 2
- Memory
- about 2 GiB
- arm64
- unknown
- amd64
- unknown
- Settings to fill in
- none
- License
- Permissive license, BSD-2-Clause
- Listing
- Community template
About Redash
Connect data sources, write SQL and build shareable dashboards. Runs the Redash web server, a query worker and a scheduler with a bundled PostgreSQL and Redis, persistent volumes and generated secrets. Create the first admin account on first visit.
What it deploys
Redash runs as 5 services in a single Compose app, listening on port 5000, with 2 named volume mounts.
| Service | Image | Tag | Ports | Volumes |
|---|---|---|---|---|
| postgres | postgres | 17.11-alpine | none | redash_pgdata -> /var/lib/postgresql/data |
| redash | redash/redash | 25.8.0 | 5000 | none |
| redis | redis | 7.4.5 | none | redash_redis -> /data |
| scheduler | redash/redash | 25.8.0 | none | none |
| worker | redash/redash | 25.8.0 | none | none |
Before you install
- CPU architecture. arm64 unknown. The scan could not read a manifest or the tag is chosen at install time. This is not a claim either way.
- Listed. It is in the catalog. Back up the data volume before changing an image tag.
Settings and environment
You do not have to fill in anything. 10 secrets are generated at deploy and stored encrypted. Values are never shown here.
| Service | Variable | Value |
|---|---|---|
| postgres | POSTGRES_DB | Preset by the template |
| postgres | POSTGRES_PASSWORD | Generated at deploy |
| postgres | POSTGRES_USER | Preset by the template |
| redash | REDASH_COOKIE_SECRET | Generated at deploy |
| redash | REDASH_DATABASE_URL | Generated at deploy |
| redash | REDASH_REDIS_URL | Preset by the template |
| redash | REDASH_SECRET_KEY | Generated at deploy |
| redash | REDASH_WEB_WORKERS | Preset by the template |
| scheduler | QUEUES | Preset by the template |
| scheduler | REDASH_COOKIE_SECRET | Generated at deploy |
| scheduler | REDASH_DATABASE_URL | Generated at deploy |
| scheduler | REDASH_REDIS_URL | Preset by the template |
| scheduler | REDASH_SECRET_KEY | Generated at deploy |
| scheduler | WORKERS_COUNT | Preset by the template |
| worker | QUEUES | Preset by the template |
| worker | REDASH_COOKIE_SECRET | Generated at deploy |
| worker | REDASH_DATABASE_URL | Generated at deploy |
| worker | REDASH_REDIS_URL | Preset by the template |
| worker | REDASH_SECRET_KEY | Generated at deploy |
| worker | WORKERS_COUNT | Preset by the template |
First run
- Open the page and create the admin account in the setup form, then add a data source under Settings.
Install Redash on a VPS
-
Install Levelrail on a fresh VPS
Run this as root on a Linux server (amd64 or arm64) with ports 80 and 443 reachable. The installer prints a setup link.
curl -fsSL https://levelrail.com/install.sh | sudo sh -
Sign in
Open the setup link, choose a password, then log the CLI in. The CLI install command is
curl -fsSL https://levelrail.com/install-cli.sh | shif the machine does not have it. See Getting started.levelrail-cli login --device -
Read the template
Shows the entry, including its full compose.yaml.
levelrail-cli templates get redash -
Deploy it
This deploys the template compose file as an app. The app name defaults to the template id; --name sets another.
levelrail-cli templates deploy redash --name my-redash
Without a domain the app gets an sslip.io address. You can also deploy it from the dashboard: Apps, New app, Browse templates, then Redash.
Docs and upstream
More in Analytics
- Plausible AnalyticsLightweight, privacy-friendly, cookie-free web analytics with no consent banner required.
- TianjiAn all-in-one insight hub that combines website analytics, uptime monitoring and server status in one dashboard.
- UmamiSimple, privacy-focused website analytics without tracking cookies or ad-tech.
- Metabase with PostgresMetabase business intelligence with its own application data kept in a bundled Postgres database instead of the built in file, so dashboards and questions survive upgrades and scale past a single user. Create the admin on first open.
- MetabaseAsk questions of your data and share dashboards, no SQL required.
- MatomoA privacy-friendly, self-hosted alternative to Google Analytics with full data ownership.