Railway

Deploy dragonfly

Redis-compatible in-memory database with 25x better performance

Deploy dragonfly

Just deployed

Deploy and Host

Deploy on Railway

OG Image

Dragonfly is a Redis-compatible, high-performance in-memory database. It's a modern alternative to Redis with 30K+ GitHub stars, typically 25% less memory usage, and up to 70% better performance.

About Hosting

Dragonfly runs as a single container on Railway with:

  • Port: 6379 (Redis-compatible, automatically managed by Railway)
  • No external dependencies - it IS the database
  • ~48MB Docker image fits any tier

Why Deploy

  • Drop-in Redis replacement - same protocol, zero code changes
  • Better performance - up to 70% faster than Redis
  • Lower memory usage - typically 25% less
  • Single binary deployment
  • Massive community (30K+ GitHub stars)

Common Use Cases

  • Session cache for web applications
  • Real-time analytics and counters
  • Leaderboards and rate limiting
  • Message queues and pub/sub
  • Primary database for small workloads

Dependencies for Dragonfly

Deployment Dependencies

No external dependencies required.


Environment Variables

VariableDescriptionDefault
DRAGONFLY_PORTInternal port6379
DRAGONFLY_REQUIREPASSAuth password(empty)
DRAGONFLY_MAXMEMORYMax memory limit(empty)
DRAGONFLY_MAXMEMORY_POLICYEviction policy(empty)

Local Development

git clone https://github.com/INAPP-Mobile/railway-dragonfly && cd railway-dragonfly
cp .env.example .env
# Edit .env if needed
docker run -d --name dragonfly -p 6379:6379 -v dragonfly-data:/data dragonflydb/dragonfly:v1.27.1
# Test connection
redis-cli ping  # Should return PONG

License

This template packages Dragonfly which is licensed under the Dragonfly License (Source Available). See the LICENSE for details. Template maintained by INAPP-Mobile.


Template Content

More templates in this category

View Template
Garage S3 Storage
Ultra-light S3 server: fast, open-source, plug-and-play.

PROJETOS
8
View Template
Postgres Backup to Cloudflare R2 (S3-Compatible)
Automated PostgreSQL backups to S3-compatible storage with encryption

Artour
7
View Template
ReadySet
A lightweight caching engine for Postgres

Milo
34