Deploy Redis on Oracle Cloud's free tier
A cache, queue and rate limiter on your own VM — no per-command pricing, no 30 MB free-plan ceiling.
At a glance
| Base image | redis:7-alpine |
|---|---|
| Port | 6379 |
| Start command | redis-server --appendonly yes |
| Infrastructure cost | $0 on Oracle Always Free (platform fee for managed DevOps) |
Running Redis on Ampere ARM
Redis is single-threaded and memory bound — one Ampere core plus a 512 MB cap handles queue and cache duty for most apps with room to spare.
Steps
- Set a memory limit and eviction policy. An unbounded Redis will happily consume the whole instance.
- Enable AOF if the data matters. Queues and sessions usually should survive a restart; pure caches need not.
- Keep it on the private network. Bind to 127.0.0.1 and connect from your app container by service name.
Dockerfile for Redis on ARM64
# docker-compose.yml
services:
redis:
image: redis:7-alpine
restart: unless-stopped
command: ["redis-server", "--appendonly", "yes", "--maxmemory", "512mb", "--maxmemory-policy", "allkeys-lru"]
volumes:
- redisdata:/data
ports:
- "127.0.0.1:6379:6379"
volumes:
redisdata:Need one tailored to your repository? The free Dockerfile generator writes an ARM-ready multi-stage build for you.
Common mistakes
- Open Redis on the public internet: Unauthenticated Redis is one of the most exploited services online. Never publish 6379 publicly.
- Using Redis as the source of truth: It is a cache first. Persist anything you cannot rebuild.
- No maxmemory: The OOM killer will take your app container down with it.
Related reading
- /guides/self-host-docker
- /oracle-cloud/always-free-arm
- /tools/cloud-cost-calculator
- All deployment guides
Get the Oracle Always Free deploy checklist
One email with the exact steps, capacity workarounds and tools we use to ship apps for $0 of cloud spend.
One email, no spam. Unsubscribe anytime.
Frequently asked
Do I need Redis at all?+
For sessions, rate limiting and background queues it is the simplest option — and self-hosting removes the free-tier size limits.
Can I run BullMQ or Celery against it?+
Yes, both work unchanged against a container on the same VM.
Does it survive reboots?+
With `--restart unless-stopped` and an AOF volume, yes.
Deploy your project for $0
No credit card. No Oracle sales call. Ship to your own cloud in under 10 minutes.
Start free