Deploy Apache Superset + Postgres/Redis
Self-hosted Superset BI with Postgres, Redis, and persistent volumes.
postgres
Just deployed
/var/lib/postgresql/data
redis
Just deployed
/data
superset
Just deployed
/app/superset_home
Deploy and Host Apache Superset + Postgres/Redis
Deploy Apache Superset on Railway with a managed-style Postgres service, Redis cache, and persistent volumes for the database, cache, and Superset home directory.
About Hosting Apache Superset + Postgres/Redis
Apache Superset is an open source business intelligence and data exploration platform. This template runs Superset with Postgres metadata storage and Redis cache support so the app can survive restarts and redeployments without losing local application state.
The template provisions three services:
- Superset web application
- Postgres 17 with a persistent data volume
- Redis 7 with append-only persistence
Superset creates the initial admin account on first boot from the variables you provide during deployment.
Why Deploy Apache Superset + Postgres/Redis on Railway
Railway provides a simple way to run the full Superset stack without manually wiring containers, private networking, persistent volumes, and generated domains. The included health check waits for Superset's /health endpoint, and the app runs database migrations plus admin bootstrap before starting Gunicorn.
Common Use Cases
- Self-hosted analytics dashboards
- Internal business intelligence workspaces
- Data exploration for product, finance, or operations teams
- Lightweight reporting environments backed by your own data sources
- Evaluation environments for Apache Superset
Dependencies for Apache Superset + Postgres/Redis Hosting
Superset depends on Postgres for metadata storage and Redis for cache/broker-style backing services. This template wires those services through Railway private networking and requires Superset secret/admin variables at deploy time.
Deployment Dependencies
SUPERSET_SECRET_KEY: a long random secret used by SupersetSUPERSET_ADMIN_USERNAME: initial admin usernameSUPERSET_ADMIN_EMAIL: initial admin email addressSUPERSET_ADMIN_PASSWORD: initial admin passwordPOSTGRES_DB: Postgres database namePOSTGRES_USER: Postgres usernamePOSTGRES_PASSWORD: Postgres passwordREDIS_PASSWORD: Redis password
Generate strong values before deploying and store them somewhere safe. After the first successful boot, sign in with the admin username and password you provided.
Template Content
postgres
postgres:17-alpinePGDATA
POSTGRES_DB
POSTGRES_USER
POSTGRES_PASSWORD
redis
redis:7-alpineREDIS_PASSWORD
RAILWAY_RUN_UID
superset
apache/superset:5.0.0-devPORT
REDIS_HOST
REDIS_PORT
DATABASE_DB
FLASK_DEBUG
SUPERSET_ENV
DATABASE_HOST
DATABASE_PORT
DATABASE_USER
REDIS_CACHE_DB
REDIS_PASSWORD
RAILWAY_RUN_UID
REDIS_CELERY_DB
DATABASE_DIALECT
PYTHONUNBUFFERED
REDIS_RESULTS_DB
DATABASE_PASSWORD
SUPERSET_SECRET_KEY
SUPERSET_ADMIN_EMAIL
SUPERSET_CONFIG_PATH
SUPERSET_LOAD_EXAMPLES
SUPERSET_ADMIN_LASTNAME
SUPERSET_ADMIN_PASSWORD
SUPERSET_ADMIN_USERNAME
SUPERSET_ADMIN_FIRSTNAME
SUPERSET_WEBSERVER_TIMEOUT
SUPERSET_WEBSERVER_WORKERS
