# Self-host 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.

- Page: https://levelrail.com/templates/redash/
- JSON: https://levelrail.com/templates/redash.json
- Category: Analytics
- Licence: BSD-2-Clause (Permissive license)
- Source: https://github.com/getredash/redash
- Upstream docs: https://redash.io/help/

## Requirements
- Memory: about 2 GiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 17.11-alpine

## Services

| 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 |

## Environment

| Service | Variable | Kind |
| --- | --- | --- |
| postgres | POSTGRES_DB | preset |
| postgres | POSTGRES_PASSWORD | generated |
| postgres | POSTGRES_USER | preset |
| redash | REDASH_COOKIE_SECRET | generated |
| redash | REDASH_DATABASE_URL | generated |
| redash | REDASH_REDIS_URL | preset |
| redash | REDASH_SECRET_KEY | generated |
| redash | REDASH_WEB_WORKERS | preset |
| scheduler | QUEUES | preset |
| scheduler | REDASH_COOKIE_SECRET | generated |
| scheduler | REDASH_DATABASE_URL | generated |
| scheduler | REDASH_REDIS_URL | preset |
| scheduler | REDASH_SECRET_KEY | generated |
| scheduler | WORKERS_COUNT | preset |
| worker | QUEUES | preset |
| worker | REDASH_COOKIE_SECRET | generated |
| worker | REDASH_DATABASE_URL | generated |
| worker | REDASH_REDIS_URL | preset |
| worker | REDASH_SECRET_KEY | generated |
| worker | WORKERS_COUNT | preset |

## Deploy

### CLI

```bash
levelrail-cli templates deploy redash --name my-redash
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/redash/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## First run
1. Open the page and create the admin account in the setup form, then add a data source under Settings.

## Questions

### Can I deploy Redash on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for Redash, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image postgres:17.11-alpine, redash/redash:25.8.0, redis:7.4.5, redash/redash:25.8.0, redash/redash:25.8.0 is what you deploy there.

Self-host Redash, Redash docker compose file, deploy Redash on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
