Deploy Redis
Deploy Redis with Senate for caching and data storage
Deploy Redis
Deploy a Redis instance for caching, sessions, or as a message broker.
Quick Setup
Time: ~2 minutes
1. Create Service
- Go to Services → Add Service
- Select your machine
- Name your service (e.g.,
redis) - Click Create

2. Configure Source
- Go to the Source tab
- Select Docker Image as source type
- Enter image:
redis:alpine - Click Save
3. Add Persistent Storage
To persist data across restarts:
- Go to the Storage tab
- Click Add Volume
- Configure:
- Volume Name:
redis-data - Container Path:
/data
- Volume Name:

4. Expose Port
- Go to the Ports tab
- Click Add Port
- Configure:
- Protocol:
tcp - Published:
6379 - Target:
6379
- Protocol:

5. Deploy
Click Deploy to start your Redis instance.
Connecting to Redis
Once deployed, connect using:
# From the same machine
redis-cli -h localhost -p 6379
# From external client
redis-cli -h your-server-ip -p 6379With Password Authentication
For production, enable password authentication:
1. Set Environment Variable
Go to Environment tab and add:
REDIS_ARGS=--requirepass your-secure-password2. Connect with Password
redis-cli -h your-server-ip -p 6379 -a your-secure-passwordConfiguration Options
| Setting | Environment Variable | Example |
|---|---|---|
| Password | REDIS_ARGS | --requirepass secret |
| Max Memory | REDIS_ARGS | --maxmemory 256mb |
| Append Only | REDIS_ARGS | --appendonly yes |
Combine multiple options:
REDIS_ARGS=--requirepass secret --maxmemory 256mb --appendonly yesInternal Access Only
If Redis is only accessed by other services on the same machine, you can skip port exposure. Services communicate via Docker's internal network using the container name as hostname.
// Other service on same machine
const redis = new Redis({
host: 'senate-redis-abc123', // Container name
port: 6379
});