Redash remains one of the most approachable open-source tools for building dashboards, sharing SQL queries, and collaborating on data.

While the project is no longer actively maintained upstream, the community builds (10.x) are still widely used for internal analytics.

In this article, I’ll show how to bring up Redash quickly on Debian 12 using Docker Compose. We’ll focus on the two files that matter most: the .env and the docker-compose.yaml.

This assumes you already have Docker Engine and Docker Compose v2 installed.

1. Directory Layout

Create a workspace for your Redash stack:

This folder will hold:

  • data/postgres → PostgreSQL data files
  • data/redis → Redis persistence
  • logs → container logs if needed
  • .env and docker-compose.yaml

2. Environment File (.env)

The .env file holds all credentials and configuration. Redash services will consume these automatically.

Tip, generate strong random secrets with:

3. Docker Compose File (docker-compose.yaml)

This Compose file brings up five containers: PostgreSQL, Redis, the Redash server, a worker, and a scheduler.
Since the host already has Nginx, we don’t run Nginx inside the stack — instead we bind the server on localhost:50001.

4. Initialize Redash

Bring the services up:

Check logs:

Visit: http://localhost:50001

5. Integrate with Host Nginx

If your Debian host already runs Nginx for other sites, just add a vhost:

Reload:

Now Redash is available at https://analytics.example.com.

6. Sending Email

Test SMTP from inside the container:

If configured correctly, Redash will send a test message from the REDASH_MAIL_DEFAULT_SENDER.

Closing Notes

That’s all it takes: a .env for configuration, and a docker-compose.yaml for orchestration.

This pattern keeps the stack self-contained while leaving room for scaling or migrating later (for example, moving Postgres to RDS, or Redis to a managed service).

If you already run Nginx on your host, exposing Redash only to 127.0.0.1:50001 is the cleanest way to avoid conflicts and keep your surface minimal.

Happy dashing!!

Leave A Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.