Back to all templates
Redis logo

Redis

Database64MB+ RAM

Redis cache with optional persistence

databasecacheredisin-memory

Deploy Redis in 3 Steps

1

Connect Your VPS

Add your server credentials to Server Compass

2

Select Redis

Choose from our template library

3

Deploy & Configure

Fill in settings and click Deploy

No Docker knowledge required
Step-by-step deployment guide

Deploy Redis on a VPS with Server Compass

Use the Redis template in Server Compass to deploy a persistent Redis cache on your VPS, then verify the service with a safe connection test.

About 5 minutesBrowser verified
1
Step 1

Open the server Apps tab

Select your VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.

Server Compass Apps tab before creating a Redis app
2
Step 2

Choose an app template

Click New App and choose the template deployment path so Server Compass can load the built-in catalog.

Choosing to deploy an app from a Server Compass template
3
Step 3

Search for Redis

Use the template picker search to find Redis in the Server Compass template catalog.

Searching for Redis in the Server Compass template picker
4
Step 4

Select the Redis template

Choose the Redis template. Server Compass fills the Docker image, port mapping, persistent volume, and database connection metadata.

Redis template selected in Server Compass
5
Step 5

Review the Redis settings

Confirm the app name and host port. In the pilot run, the app was named redis-demo and the host port was changed to 16379 to avoid conflicts with any existing Redis service.

Reviewing Redis deployment settings and host port mapping
6
Step 6

Deploy Redis

Review the final settings, click Deploy Now, and let Server Compass create the Redis container and persistent volume on the VPS.

Reviewing Redis settings before clicking Deploy Now
7
Step 7

Watch the deployment progress

Keep the deployment modal open while Server Compass prepares the project, pulls the Docker image, starts the container, and checks the service status.

Server Compass deploying the Redis template on the VPS
8
Step 8

Confirm Redis is running

After deployment finishes, return to the Apps tab and confirm the Redis app is marked Running with its database connection section available.

Redis template running in the Server Compass Apps tab
9
Step 9

Test the Redis connection

Open the Redis app details, expand Database Connection, and click Test. A PONG response confirms Server Compass can reach the deployed Redis service without revealing the server IP.

Redis connection test returning PONG in Server Compass

After Redis Opens

  • Use Redis only from trusted networks or trusted app containers unless you explicitly need external access.
  • Add password protection before using Redis for production workloads.
  • Tune persistence, maxmemory, and eviction policy for the data you plan to cache or store.
  • Keep generated connection details masked in screenshots and docs.

Verified Result

Server Compass showed one running Redis container, port 16379 mapped to 6379, and the Database Connection test returned PONG.

Redis deployment questions

What does the Redis template deploy?

It deploys the official Redis Docker image with a persistent data volume and a Server Compass database connection entry.

Which port did the pilot use?

The pilot used host port 16379 mapped to Redis port 6379 to avoid conflicts with any existing Redis service.

Should Redis be exposed publicly?

Only expose Redis when you understand the security tradeoff. For production, restrict access, use authentication, and prefer private app-to-database connections when possible.

Should this become a blog post?

No. The deployment guide should live on the Redis template detail page and be linked from the reusable template deployment docs page.

Command Line Setup

Install Redis Manually

Set up Redis yourself using Docker Compose and the command line.

1

Remote into Your Server

Initiate a secure shell connection to your server using the command below.

terminal
# Connect to your VPS
ssh root@your-server-ip

# Or with a specific SSH key
ssh -i ~/.ssh/your-key root@your-server-ip

First time? Docker required! Install it with: curl -fsSL https://get.docker.com | sh

2

Create the App Directory

Organize your deployment by creating a dedicated project folder.

terminal
# Create and navigate to project directory
mkdir -p ~/apps/redis
cd ~/apps/redis
3

Write Your docker-compose.yml

Create a new docker-compose.yml file and paste this configuration:

docker-compose.yml
services:
  redis:
    image: redis:7-alpine
    ports:
      - "6379:6379"
    volumes:
      - redis_data:/data
    command: redis-server --appendonly yes
    restart: unless-stopped
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      interval: 10s
      timeout: 5s
      retries: 5

volumes:
  redis_data:
Configuration Options
PORTHost port to expose(default: 6379)
4

Launch the Containers

Start the services and tail the logs to verify startup.

terminal
# Spin up containers
docker compose up -d

# Verify deployment
docker compose ps

# Check logs for errors
docker compose logs -f
5

Open Firewall Ports

Open the required port in your firewall to allow access.

terminal
# Allow the application port through firewall
sudo ufw allow 6379/tcp
sudo ufw reload

# Access your app at:
# http://your-server-ip:6379
Skip the Terminal

Want the easy way? Try Server Compass.

No terminal needed. Deploy Redis through a visual dashboard with automatic configuration.

  • Visual config editor
  • Instant deployment
  • Automatic HTTPS
  • Smooth updates
  • Live monitoring
  • Quick rollbacks
Download Server Compass$29 one-time • Lifetime license

After Deployment

After deploying Redis with Server Compass, complete these steps to finish setup

1

Test Redis connection

2

Configure password authentication (strongly recommended)

3

Set up persistence configuration (RDB/AOF)

4

Configure maxmemory and eviction policies

5

Set up monitoring and alerts

6

Consider setting up Redis Sentinel for high availability

Need help? Check out our documentation for detailed guides.

Redis FAQ

Common questions about self-hosting Redis

How do I deploy Redis with Server Compass?

Simply download Server Compass, connect to your VPS, and select Redis from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.

What are the system requirements for Redis?

Redis requires a minimum of 64MB RAM. We recommend a VPS with at least 1024MB RAM for optimal performance. Any modern Linux server with Docker support will work.

Can I migrate my existing Redis data?

Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard Redis backup and restore procedures.

How do I update Redis to the latest version?

Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest Redis image will be pulled and deployed with zero downtime.

Is Redis free to self-host?

Redis is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.

Ready to Self-Host Redis?

Download Server Compass and deploy Redis to your VPS in under 3 minutes. No Docker expertise required.

Download Server Compass