What is Valkey?
Valkey is the BSD-licensed, Redis-compatible in-memory data store, forked and stewarded by the Linux Foundation after Redis changed its license. It is a drop-in for Redis clients and protocols: caching, queues, pub/sub, streams, and data structures all work unchanged.
This template is a single node, password-protected, with append-only persistence on a volume, running internal-only on Lyngbak (apps connect at valkey:6379). A thin wrapper reads the password from the environment at start.
Lyngbak offers managed Valkey as an addon for hands-off use. Run this template when you want to operate Valkey yourself, pin a version, or move up to the sentinel (failover) and cluster (sharding) topologies.
What you get
- Fully Redis-protocol compatible - clients work unchanged
- Cache, queues, pub/sub, streams, data structures
- Password-protected, append-only persistence on a volume
- Internal-only - reached at valkey:6379
- Sentinel and Cluster variants available for HA / scale
- BSD-3-Clause licensed
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
valkey | in-memory data store (:6379) | no (internal) |
Before you deploy
VALKEY_PASSWORDrequirepass secret (openssl rand -hex 24)
Sizing and billing
Size RAM to your working set; the volume holds the append-only file. A single node is not HA - see valkey-sentinel for failover.
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 | Valkey, cache.t4g.micro | $12/mo | smallest on-demand node/mo (ElastiCache now defaults to Valkey) |
| Aiven | Caching Startup | $31/mo | smallest managed Valkey plan/mo |
Managed caches bill per node; self-hosted Valkey is billed for the compute it reserves, BSD-licensed. 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
How is Valkey different from Redis?
Valkey is the community fork created after Redis moved to a more restrictive license. It stays under the permissive BSD-3-Clause license and remains protocol-compatible, so existing Redis clients, libraries, and tooling work without changes.
Why run this if Lyngbak has managed Valkey?
The managed addon is simpler for wiring a cache to an app. This template is for running Valkey yourself with full control, or for the Sentinel and Cluster topologies, which the managed addon does not provide.
Can I point Redis clients at it?
Yes. Valkey speaks the Redis protocol, so any Redis client or library connects to valkey:6379 the same way it would to Redis.