Redis on Railway
Redis 8 with a password, persistence, RedisInsight UI and daily backups, running on Railway.
Redis is an in-memory data store used as a cache, session store, queue backend and as a document and vector database. Applications reach it over the Redis protocol, and most web frameworks and job queue libraries support it directly.
Redis 8 bundles the Query Engine, JSON, time series and probabilistic data structures, plus vector sets, so one server can cover search and vector use cases as well as caching. RedisInsight is the companion web UI for browsing keys and running commands.
Since Redis 8.0 the server is available under your choice of RSALv2, SSPLv1 or AGPLv3, and RedisInsight is SSPLv1. Redis Ltd.'s terms matter if you offer Redis to third parties as a service.
What Redis can do
- Redis Query Engine, JSON, time series and probabilistic modules
- Vector sets
- Password on every connection
- AOF and RDB persistence
- RedisInsight web UI
- Backups to object storage
What people use it for
- Cache and session store for web apps
- Job queues for BullMQ, Sidekiq, Celery or RQ
- Rate limiting, counters, pub/sub and streams
- JSON documents with search and vector queries
Videos
Running Redis on Railway
On Railway, the Redis template deploys Redis 8.10.3 with a generated password, AOF and RDB persistence on a volume and a TCP proxy for external clients. RedisInsight 3.8.0 runs behind a Caddy login gateway, and a cron job writes verified RDB backups to a Railway Bucket with 14-day retention. It keeps Railway's Redis variable names, so ${{Redis.REDIS_URL}} references keep working. Cost follows Redis memory and its volume, which needs about twice the data size, plus Bucket storage; the template notes say most idle cost is RedisInsight, which you can remove.
Redis templates on Railway
Tracklayer templates are listed first. Other Redis templates follow, ordered by total deployments on Railway. How this works.
Deployment numbers as of 2026-11-20.
Questions about Redis
How do I connect to it?
Services in the same project reference ${{Redis.REDIS_URL}}. REDIS_PUBLIC_URL goes through the TCP proxy; it is password-protected but not encrypted and is billed as egress.
How do I use it as a cache instead of a store?
Set REDIS_MAXMEMORY to a fixed size and REDIS_MAXMEMORY_POLICY to allkeys-lru. For a pure cache also set REDIS_APPENDONLY to no and REDIS_SAVE to off.
How do backups and restores work?
A cron job writes RDB snapshots, checked with redis-check-rdb, to a Railway Bucket daily. To restore, set BACKUP_RESTORE_RUN to a run folder name and trigger the job.
What drives the cost?
Redis memory, its volume and Bucket storage. Most of the idle cost is RedisInsight; you can remove it and its gateway and keep Redis.
Which licences apply?
Redis 8 is available under RSALv2, SSPLv1 or AGPLv3 at your choice, and RedisInsight is SSPLv1. Seek legal advice if you offer Redis to others as a service. Valkey is a BSD-licensed alternative.
Guides
Similar apps
Tracklayer maintains the templates marked as such; Redis is a trademark of its owners and this site is not affiliated with them.