Self-host Redis in one click

Run Redis 8 free on your own VPS, with a strong password, encrypted remote access and backups, for less than a small managed cache.

Terminal
$ curl -fsSL https://sshworkbench.com/install.sh | bash

Free 7-day trial. No sign-up, no credit card.

Deploy Redis dialog in SSH Workbench

Last updated November 16, 2026

Is self-hosted Redis free?

Yes. Redis Open Source is free to run on your own server, with no limit on memory, keys or connections. Since Redis 8 it also includes what used to be the separate Redis Stack: JSON, the Redis Query Engine for search, time series, vector sets and probabilistic data types.

The license is where Redis has a history, and it is the reason so many people ask whether Redis is still open source:

  • Redis 7.2 and earlier: BSD-3-Clause, a classic open-source license.
  • Redis 7.4 to 7.8 (from March 2024): dual licensed under RSALv2 or SSPLv1. Neither is open source. RSALv2 forbids offering Redis to others as a managed service.
  • Redis 8 and later (from May 2025): you can pick RSALv2, SSPLv1 or AGPLv3. AGPLv3 is an OSI-approved open-source license.

In practice, none of this changes anything if you run Redis as the cache or queue behind your own apps. You can use it for commercial work at no cost. The AGPLv3 only asks something of you if you modify Redis itself and let other people use that modified version over a network: then you must publish your changes. The paid product is Redis Software, the enterprise edition for your own servers, which adds active-active replication and support.

Self-hosted Redis vs ElastiCache, Redis Cloud and Upstash: what it costs

Managed Redis is cheap at the smallest sizes and expensive once you need real memory. Prices below are on-demand list prices in US dollars, checked in November 2026. ElastiCache is the US East (N. Virginia) region, Redis OSS engine, before data transfer.

OptionMemoryPer monthPer year
Self-hosted on a 1 GB VPS (DigitalOcean)Shared with the OS$6$72
Self-hosted on a 2 GB VPS (DigitalOcean)Shared with the OS$12$144
Redis Cloud EssentialsSmallest plan$5$60
Upstash Fixed 250MB250 MB$10$120
Upstash Fixed 1GB1 GB$20$240
AWS ElastiCache cache.t4g.micro0.5 GiB$11.68$140
AWS ElastiCache cache.t4g.medium3.09 GiB$47.45$569
Redis Cloud ProDedicated, minimum spend$200$2,400

If all you need is a 250 MB cache for a side project, Redis Cloud Essentials or Upstash's free tier is hard to beat. Self-hosting pays off when you already run a server for your app, or need a few gigabytes: a 2 GB VPS at $12 a month gives Redis more memory than an ElastiCache node at $47, and the same server can run your app and database too. Keeping Redis on the same machine as the app also removes network latency and AWS data transfer charges.

With SSH Workbench, add $199 once or $9 a month. That covers every app on every server you manage, not just Redis.

What you need

  • A Linux VPS. Redis does not publish a minimum spec. Size the server for your data: Redis keeps everything in RAM, and its docs warn that saving to disk can use up to twice the normal memory on write-heavy workloads. A 1 GB VPS is fine for a cache of a few hundred megabytes.
  • A domain, only if apps outside the server (Vercel, AWS Lambda, another VPS) need to reach Redis over an encrypted connection.
  • Docker or Podman on the server.

Self-host Redis in one click with SSH Workbench

  1. Connect your server in SSH Workbench, open Apps, then Deploy app, and pick Redis.
  2. Keep or change the container name.
  3. Under Who needs to connect to this database?, choose Just apps on this server (recommended). The port is bound to 127.0.0.1, and you reach it from your laptop or a GUI client through an SSH tunnel. Choose External services (Vercel, AWS, my other servers) instead if code outside the server needs Redis. You enter a domain, and SSH Workbench puts TLS in front of Redis and gives you a rediss:// connection string that works from anywhere.
  4. Pick Backups: None, Daily or Hourly. Daily keeps 7 days.
  5. Leave Performance on Tuned to size Redis's memory limit to the server's RAM, or pick Conservative. View / edit auto-tuned values shows what will be set.
  6. Open Advanced to choose the version (8, 7.4 or 7.2), the eviction policy (allkeys-lru by default, noeviction if Redis is your source of truth) and whether AOF persistence is on.
  7. Click Deploy. Redis starts with a 24-character password, generated for you and shown once after the deploy. Save it.

Self-host Redis with docker compose

If you would rather set it up by hand, this compose file runs Redis 8 with a password, AOF persistence, a memory limit and a health check. Put the password in a .env file next to it as REDIS_PASSWORD=....

services:
  redis:
    image: redis:8
    restart: unless-stopped
    command:
      - redis-server
      - --requirepass
      - ${REDIS_PASSWORD}
      - --appendonly
      - "yes"
      - --maxmemory
      - 512mb
      - --maxmemory-policy
      - allkeys-lru
    environment:
      - REDIS_PASSWORD=${REDIS_PASSWORD}
    ports:
      - "127.0.0.1:6379:6379"
    volumes:
      - redis_data:/data
    healthcheck:
      test: ["CMD-SHELL", "redis-cli -a \"$$REDIS_PASSWORD\" --no-auth-warning ping | grep PONG"]
      interval: 10s
      timeout: 3s
      retries: 5

volumes:
  redis_data:

Start it with docker compose up -d. The official image ignores a REDIS_PASSWORD variable on its own, which is why the password goes to --requirepass on the command line. Binding to 127.0.0.1 keeps port 6379 closed to the internet. Redis listens on every interface by default, and Redis's own docs call an exposed instance a big security issue.

Set maxmemory below the RAM you can spare, and switch the policy to noeviction when Redis holds job queues or anything you cannot lose.

Connecting to self-hosted Redis

From the server itself:

redis-cli -a 'your-password' --no-auth-warning ping

From your laptop, open an SSH tunnel and connect to the local end, with redis-cli or a GUI such as Redis Insight:

ssh -N -L 6379:127.0.0.1:6379 user@your-server
redis-cli -h 127.0.0.1 -p 6379 -a 'your-password'

Apps running in the same compose file reach Redis at redis://:your-password@redis:6379, using the service name as the host. Apps outside the server use the rediss:// connection string from the External services option; the extra s means TLS.

Running self-hosted n8n in queue mode? Redis is the broker that hands executions to the workers. Point QUEUE_BULL_REDIS_HOST, QUEUE_BULL_REDIS_PORT and QUEUE_BULL_REDIS_PASSWORD at this instance.

Backups

Redis stores everything in its /data folder: dump.rdb for snapshots and the appendonlydir folder when AOF is on. Copy both. To take a fresh snapshot on demand, run redis-cli -a 'your-password' BGSAVE and copy dump.rdb once it finishes.

To restore, stop Redis, put the backed-up files into the data volume, and start it again. With AOF on, Redis loads the AOF files rather than dump.rdb, so restore the appendonlydir folder as well.

SSH Workbench's scheduled backup archives the whole data volume. It stops Redis for a few seconds while the copy is taken, so the files are consistent, then starts it again.

Updating

With docker compose, pull the new image and recreate the container:

docker compose pull
docker compose up -d

Redis reads data files written by older versions, so moving from 7.2 or 7.4 to 8 is a pull and restart. Going back is the risky direction, since an older Redis may refuse a file written by a newer one. Take a backup before a major version jump. Note that 7.2 to 7.4 or later also moves you from the BSD license to the newer licenses described above.

Redis or Valkey?

When Redis left the BSD license in March 2024, the Linux Foundation started Valkey, a fork of Redis 7.2.4, backed by AWS, Google Cloud, Oracle and others. Valkey stays under BSD-3-Clause, speaks the same protocol and works with the same clients, so most apps switch by changing the host. AWS now prices Valkey below Redis OSS on ElastiCache.

Pick Redis 8 if you want the built-in JSON, search and vector features, or the newest Redis releases. Pick Valkey if you want a permissive license with no AGPL questions at all. SSH Workbench deploys both from the same dialog, with the same password, TLS and backup options.

Troubleshooting

"Connection refused" from another container. Inside Docker, localhost is the app's own container. Use the compose service name (redis) as the host, and make sure both services share a network.

"WARNING Memory overcommit must be enabled!" in the logs. Redis needs it to save to disk safely. On the host, run sudo sysctl vm.overcommit_memory=1 and add vm.overcommit_memory = 1 to /etc/sysctl.conf so it survives a reboot.

"DENIED Redis is running in protected mode". Redis refuses outside connections when no password is set. Set one with --requirepass rather than turning protected mode off, and keep the port bound to 127.0.0.1.

"OOM command not allowed when used memory > 'maxmemory'". Redis hit its memory limit with noeviction. Raise maxmemory, move to a bigger server, or use allkeys-lru if the data is a cache Redis may drop.

Self-hosting Redis: questions

What is Redis persistence?

Redis keeps data in memory and writes it to disk in two ways. RDB snapshots save the whole dataset every so often to dump.rdb, and the append-only file (AOF) logs every write so a crash loses at most about a second. Turn AOF on when Redis holds data you cannot rebuild, such as job queues or sessions, and leave it off for a pure cache.

Can Redis Enterprise be self hosted?

Yes. Redis sells its enterprise edition for your own servers as Redis Software, which runs on bare metal, Kubernetes or your own cloud account. It adds active-active replication across regions, automatic failover and support, and pricing comes from Redis sales after a free trial. Most single-server setups only need the free Redis Open Source.

Do I need Redis Cluster or Sentinel when self hosting?

Usually not. One Redis instance on a VPS handles a lot of traffic, and most apps (n8n, Sentry, Rails and Laravel queues) are built for a single node. Add Sentinel when you need automatic failover to a replica, and Redis Cluster only when your data no longer fits in one server's memory.

Can I self host Upstash Redis?

Not Upstash itself; its platform is a closed managed service. The data side is plain Redis, so run Redis on your VPS and point any standard client at it. If your code uses Upstash's HTTP client (@upstash/redis), community proxies such as serverless-redis-http (SRH) put the same REST API in front of your own Redis.

Does Redis work on Windows?

Not natively. Redis's own docs tell Windows users to run the official Docker image, and point to Memurai, a Windows build from a Redis partner. For a server, a small Linux VPS is the simpler and better-tested choice.

Redis is a trademark of Redis Ltd.. SSH Workbench is not affiliated with or endorsed by Redis Ltd..

Deploy Redis in one click

Install SSH Workbench, connect your server and pick Redis from the catalog.

Terminal
$ curl -fsSL https://sshworkbench.com/install.sh | bash

Free 7-day trial. No sign-up, no credit card.