---
title: "How to provision Dragonfly (Redis) on Rock8Cloud"
description: "Provision a Dragonfly - a Redis-compatible in-memory store - inside your project and connect it to your app in one click."
tech: "Dragonfly (Redis)"
icon: redis
category: services
pubDate: 2026-06-04
image: /how-to/og/dragonfly.png
imageAlt: "How to provision Dragonfly (Redis) on Rock8Cloud"
headerImage: true
ctaTitle: "Your cache or queue, one click away."
ctaTitleHighlight: "Ship today."
ctaSubtitle: "Dragonfly (Redis) provisioned and connected to your app in one click. No DevOps, no surprise bills."
ctaIcons: [redis]
order: 91
steps:
  - name: "Add a service"
    text: "In your project, click Add Service and pick Database, then Dragonfly."
  - name: "Pick a size and create"
    text: "Choose a storage size. Rock8Cloud provisions the instance with networking handled automatically."
  - name: "Link it to your app"
    text: "Open your app's Env vars tab and add the connection variables - most apps just need REDIS_URL."
  - name: "Save"
    text: "Your app automatically redeploys with the connection wired in."
faq:
  - q: "Can I use my existing Redis client with Dragonfly?"
    a: "Yes. Dragonfly is Redis-compatible - a drop-in replacement that works with any Redis client library (ioredis, redis-py, Sidekiq…)."
  - q: "What is Dragonfly good for?"
    a: "Caching, session storage, queues, rate limiting - any workload where you'd normally reach for Redis, with a multi-threaded architecture that's faster for many workloads."
  - q: "How does my app connect?"
    a: "Link HOST and PORT (6379), or map them into a single REDIS_URL=redis://HOST:PORT. Your app redeploys and the values become accessible."
---

Provision a [Dragonfly](https://github.com/dragonflydb/dragonfly) - a modern, Redis-compatible in-memory store - inside your Rock8Cloud project and connect it to your app **in one click**. Use it for caching, sessions, and queues with any Redis client.

## Provision and connect in one click



[Pick the engine and provision it in one click](https://minio.11333311.xyz/vibeham-docs/db_selection.mp4)



1. **Add a service.** In your project, click **Add Service → Database → Dragonfly** and pick a storage size.
2. **Link it.** Open your app's **Env vars** tab and add the connection variables under the names your framework expects.
3. **Save.** Your app automatically redeploys - connected.



[Link environment variables in one click](https://minio.11333311.xyz/vibeham-docs/env_configuration.mp4)




## Connect from your app

When you link the database, you name the variable yourself. Most Redis clients expect `REDIS_URL`, so link the **Connection URL** under that name:

```bash
# You choose the name when linking - e.g.
REDIS_URL   # → redis://HOST:PORT
```

Linking the connection URL also adds its building blocks automatically - `REDIS_HOST` and `REDIS_PORT` appear alongside it, ready to use individually.

When you link, you pick what the variable maps to - Dragonfly offers:

| Link option | Maps to |
|---|---|
| Host | auto-generated hostname |
| Port | `6379` |
| Connection URL | `redis://HOST:PORT` |

Any Redis client accepts these directly. The instance is network-isolated to your project - reachable by your services, never exposed publicly.

Full reference and troubleshooting in the [Dragonfly docs](https://docs.rock8.cloud/docs/databases-and-storage/dragonfly).

Also provision: [PostgreSQL](/how-to/provision-postgresql) · [S3 object storage](/how-to/provision-s3).
