---
title: "Deploy Dragonfly"
description: "A data store built for modern workloads"
category: "Storage"
url: https://railway.com/deploy/dragonfly
---

# Deploy Dragonfly

A data store built for modern workloads

**[Deploy Dragonfly on Railway](https://railway.com/template/dragonfly)**

- **Creator:** Brody's Projects
- **Category:** Storage
- **Total deploys:** 123

## Template content

### Dragonfly https://i.imgur.com/Kgtyvru.png

- **Image:** ghcr.io/dragonflydb/dragonfly
- **Start command:** `/bin/sh -c "exec dragonfly --logtostderr --requirepass=${DRAGONFLY_PASSWORD} --bind '::'"`

## Documentation

<p align="center">
  <a href="https://dragonflydb.io">
    <img src="https://github.com/dragonflydb/dragonfly/raw/main/.github/images/logo-full.svg" width="350" alt="Dragonfly">
  </a>
</p>

## The world's most efficient in-memory data store

Dragonfly is a drop-in Redis® replacement that is optimized for data-intensive, low latency applications. Applications built on Dragonfly get the full speed, reliability, and scalability that modern cloud hardware makes possible, allowing them to deliver incredible experiences to their users while reducing both costs and complexity.

Fully compatible with Redis and Memcached APIs, Dragonfly requires no code changes to adopt. Compared to legacy in-memory datastores, Dragonfly delivers 25X more throughput, higher cache hit rates with lower tail latency, and can run on up to 80% less resources for the same sized workload.

Dragonfly currently supports ~185 Redis commands and all Memcached commands besides cas. Almost on par with the Redis 5 API, Dragonfly's next milestone will be to stabilize basic functionality and implement the replication API. If there is a command you need that is not implemented yet, please open an issue.

## Overview

- Dragonfly is deployed with their [ghcr.io/dragonflydb/dragonfly](https://github.com/dragonflydb/dragonfly/pkgs/container/dragonfly) Docker image

- A volume is mounted to the service to persist data between builds.

- TCP proxying is configured to allow accessing the database from anywhere.

## How to use

Reference the `DRAGONFLY_PRIVATE_URL` variable in your service, and then use the environment variable in your application. e.g.

```
DRAGONFLY_URL=${{Dragonfly.DRAGONFLY_PRIVATE_URL}}
```

## Similar templates

- [Garage S3 Storage](https://railway.com/deploy/garage-s3-storage) — Ultra-light S3 server: fast, open-source, plug-and-play.
- [Redis](https://railway.com/deploy/redis-1) — Self Host Latest Redis with Railway
- [Postgres Backup to Cloudflare R2 (S3-Compatible)](https://railway.com/deploy/postgres-to-r2-backup) — Automated PostgreSQL backups to S3-compatible storage with encryption

Open this page in a browser: https://railway.com/deploy/dragonfly
