---
title: "Deploy Rubix Redis Bridge with Redis"
description: "Secure Redis HTTP bridge with Upstash SDK compatibility."
category: "Storage"
url: https://railway.com/deploy/rubix-redis-bridge
---

# Deploy Rubix Redis Bridge with Redis

Secure Redis HTTP bridge with Upstash SDK compatibility.

**[Deploy Rubix Redis Bridge with Redis on Railway](https://railway.com/template/rubix-redis-bridge)**

- **Creator:** Vincent Vu's Projects
- **Category:** Storage

## Template content

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### rubixvi/rubix-redis-bridge

- **Image:** rubixvi/rubix-redis-bridge
- **Public domain:** Yes

## Documentation

# Deploy and Host Rubix Redis Bridge on Railway

Rubix Redis Bridge is a secure, self-hosted HTTP gateway for Redis-compatible databases. It provides an Upstash-style REST API for supported `@upstash/redis`, `@upstash/ratelimit`, and `@upstash/realtime` workflows, with bearer authentication, command policies, managed transactions, realtime SSE subscriptions, health checks, and Prometheus metrics.

## About Hosting Rubix Redis Bridge

Deploying Rubix Redis Bridge provisions the bridge alongside Redis and connects both services through Railway’s private network. Redis remains protected from direct public access while the bridge provides authenticated HTTP endpoints for applications that cannot use Redis TCP connections. The deployment generates separate access and metrics tokens, applies command restrictions, limits request and response sizes, controls concurrency, and monitors Redis availability. A Railway public domain can be enabled when external or serverless applications require access. Applications running within the same Railway project can use private networking to avoid public traffic and network egress.

## Common Use Cases

- Use Upstash Redis SDKs with a self-hosted Redis deployment
- Provide Redis access to serverless, edge and HTTP-only applications
- Support caching, rate limiting, KV storage and realtime SSE events

## Dependencies for Rubix Redis Bridge Hosting

- An authenticated Redis-compatible database
- Secure bearer tokens for API and metrics access

### Deployment Dependencies

- [Rubix Redis Bridge repository](https://github.com/rubix-studios-pty-ltd/rubix-redis-bridge)
- [Redis documentation](https://redis.io/docs/latest/)
- [Upstash Redis SDK documentation](https://upstash.com/docs/redis/sdks/ts/overview)

### Implementation Details

Configure an application using the bridge with the standard Upstash Redis client:

```ts
import { Redis } from '@upstash/redis'

export const redis = new Redis({
  url: process.env.UPSTASH_REDIS_REST_URL!,
  token: process.env.UPSTASH_REDIS_REST_TOKEN!,
})
```

Set these variables on the consuming application:

```
UPSTASH_REDIS_REST_URL="https://your-bridge-domain"
UPSTASH_REDIS_REST_TOKEN="your-bridge-token"
```

### Why Deploy Rubix Redis Bridge 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 Rubix Redis Bridge 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.

## 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
- [EasyImg](https://railway.com/deploy/easyimg) — Simple self-hostable Nuxt.js personal image hosting system.

Open this page in a browser: https://railway.com/deploy/rubix-redis-bridge
