
Deploy Fedis
Fast Redis-compatible server in Rust
Just deployed
/data
Deploy and Host Fedis on Railway
Fedis is a fast Redis-compatible server written in Rust. It supports common Redis commands, optional password authentication, append-only file (AOF) persistence, periodic snapshots, and a Prometheus-style metrics endpoint. Fedis is a lightweight drop-in cache or state layer for apps that want Redis-like behavior with a focused, self-hosted runtime.
About Hosting Fedis
Hosting Fedis on Railway is straightforward: run the container, expose port 6379, and configure persistence and auth with environment variables. For production usage, attach a persistent volume and set FEDIS_DATA_PATH (or FEDIS_AOF_PATH) so data survives restarts and deploys. You can secure access by setting FEDIS_PASSWORD (and optional FEDIS_USERNAME/FEDIS_USERS), then connect from your app using standard Redis clients. If you need observability, enable the metrics endpoint with FEDIS_METRICS_ADDR and scrape it from your monitoring stack. The result is a managed, Redis-compatible service with minimal operational overhead.
Common Use Cases
- Session and API response caching for web backends
- Lightweight queues, counters, and ephemeral state storage
- Local development or internal environments that need Redis protocol compatibility
Dependencies for Fedis Hosting
- A persistent Railway volume for durable AOF/snapshot data
- Client/application connectivity using a Redis-compatible client library
Deployment Dependencies
- Fedis container image:
ghcr.io/lassejlv/fedis:latest - Railway volume docs: https://docs.railway.com/guides/volumes
- Railway variables docs: https://docs.railway.com/guides/variables
Implementation Details
Set the most common runtime variables:
FEDIS_PORT=6379
FEDIS_PASSWORD=change-me
FEDIS_DATA_PATH=/data
FEDIS_AOF_PATH=/data/fedis.aof
FEDIS_AOF_FSYNC=everysec
Typical container/service port: 6379.
Why Deploy Fedis on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Fedis on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content