What is Redis?
Redis is the in-memory data store that powers caching, job queues, pub/sub, rate-limiting, sessions, leaderboards, and streams across a huge share of modern apps. This template is a single node, password-protected, with append-only persistence on a volume.
It runs internal-only on Lyngbak: other services in the same project connect at redis:6379 over the private network. A thin wrapper reads the password from the environment at start, so the secret is never baked into the image.
Lyngbak also offers managed Valkey (a Redis-compatible drop-in) as an addon - reach for that when you just want a cache wired to an app. Run this when you want to own and tune Redis yourself, or step up to the sentinel (failover) and cluster (sharding) templates.
What you get
- Cache, queues, pub/sub, streams, and rich data structures
- Password-protected, append-only persistence on a volume
- Internal-only - reached at redis:6379 on the private network
- Single node, ~tiny footprint
- Sentinel and Cluster variants available for HA / scale
- Redis 8 is AGPL-3.0
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
redis | in-memory data store (:6379) | no (internal) |
Before you deploy
REDIS_PASSWORDrequirepass secret (openssl rand -hex 24)
Sizing and billing
Size RAM to your working set (Redis keeps data in memory); the volume only needs to hold the append-only file. A single node is not HA.
A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 4.88 GiB of volumes cost $0.15 per GiB a month ($0.73/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| AWS ElastiCache | cache.t4g.micro | $12/mo | smallest on-demand node/mo; HA doubles it |
| Redis Cloud | Fixed | $5/mo | from $5/mo for a tiny instance, scales with memory |
Managed Redis/Valkey bills per node (and per AZ for HA); this runs on your own infrastructure, billed for the compute it reserves. Prices from each vendor's pricing page, June 2026.
Run it locally first
The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.
Questions
Should I use this or managed Valkey?
For most apps, managed Valkey (a Redis-compatible addon) is less to operate. Use this Redis template when you specifically want Redis, full control of its configuration, or the Sentinel / Cluster topologies the managed addon does not expose.
What does this save vs ElastiCache?
AWS ElastiCache prices per node per month and multiplies for HA, plus data transfer. This runs on your own infrastructure, on a flat resource or by the second on Usage Billing.
Is my data safe across restarts?
Append-only persistence is enabled and written to the volume, so data survives restarts. For real high availability (automatic failover), use the redis-sentinel template; a single node still has a single point of failure.