Repix Logo
Deployment

Railway

Deploy Repix to Railway with automatic Dockerfile detection.

Railway automatically detects and uses the Dockerfile at the root of your repository.

Quick Deploy (Template)

Use the ready-to-deploy template for a one-click setup:

Deploy repix on Railway →

The template uses the official Docker image. After deployment, generate a domain under SettingsNetworkingGenerate Domain.

Prefer the template for the fastest path to production. Use the manual steps below if you need to deploy from your own GitHub fork or customize the build.

Deploy Steps (Manual)

1. Create a Project

  1. Go to Railway Dashboard
  2. Click New Project
  3. Select Deploy from GitHub repo
  4. Connect and choose the repix repository

2. Configure Service

Railway detects the Dockerfile and builds your image. No extra build config needed.

3. Environment Variables

Add variables in Variables tab:

VariableValue
NODE_ENVproduction
PORT3210
SOURCE_PREFIXhttps://

4. Expose Port

  1. Go to SettingsNetworking
  2. Click Generate Domain to get a public URL

Your Repix instance will be at:

https://repix-production-xxxx.up.railway.app
Railway sets PORT automatically. The Dockerfile exposes 3210; Railway maps it correctly.

Custom Domain

  1. SettingsNetworkingCustom Domain
  2. Add your domain (e.g., images.yourdomain.com)
  3. Update DNS with the CNAME record Railway provides

Scaling

Railway supports horizontal scaling. To run multiple instances:

  1. SettingsReplicas — Increase instance count
  2. Use Railway's load balancer for distribution

Troubleshooting

"Stopping Container" right after startup

  1. Set health check path – In SettingsHealth Check, set the path to /health (path only, not full URL). Railway waits for this to return 200 before marking the deploy live.
  2. Do not set PORT – Remove PORT from Variables; Railway injects it (e.g. 8080).
  3. Generate domainSettingsNetworkingGenerate Domain so the service is routable.

Dockerfile Path

If using a non-standard path, set:

RAILWAY_DOCKERFILE_PATH=/path/to/Dockerfile
Copyright © 2026