Railway Deployment¶
Deploy MCP Notify to Railway with one click.
One-Click Deploy¶
Manual Deployment¶
1. Create Project¶
Bash
# Install Railway CLI
npm install -g @railway/cli
# Login
railway login
# Create new project
railway init
2. Add Services¶
Add PostgreSQL and Redis:
3. Deploy¶
4. Configure Environment¶
Railway auto-configures DATABASE_URL and REDIS_URL from linked services.
Add additional variables:
Configuration Files¶
MCP Notify includes Railway configuration:
railway.json¶
JSON
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "DOCKERFILE",
"dockerfilePath": "Dockerfile"
},
"deploy": {
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
railway.toml¶
TOML
[build]
builder = "dockerfile"
dockerfilePath = "Dockerfile"
[deploy]
healthcheckPath = "/health"
healthcheckTimeout = 30
restartPolicyType = "on_failure"
Scaling¶
Horizontal Scaling¶
Vertical Scaling¶
Adjust resources in Railway dashboard:
- CPU: 0.5-8 vCPU
- Memory: 512MB-32GB
Custom Domain¶
Configure DNS:
| Type | Name | Value |
|---|---|---|
| CNAME | api | your-app.up.railway.app |
Monitoring¶
Railway provides built-in:
- Logs:
railway logs - Metrics: Dashboard → Metrics tab
- Alerts: Configure in dashboard
Cost Estimation¶
| Usage | Estimated Cost |
|---|---|
| Hobby (low traffic) | $5/month |
| Production (moderate) | $20-50/month |
| Scale (high traffic) | $100+/month |
Free Tier
Railway offers $5 free credit monthly for new users.