Migration Guides
Guide
Migrating from Railway
Move your Railway projects to Grid. Same Docker workflow, your own infrastructure, 80%+ cost reduction.
Before you start: Ensure Grid is installed and running. See the Installation Guide if you haven't set it up yet.
Key Differences
| Capability | Railway | Grid |
|---|---|---|
| Pricing Model | Usage-based (RAM/CPU minutes) | Flat rate (you pay your VPS provider) |
| Storage Cost | Volumes in beta, expensive at scale | Included, any size |
| Database HA | Single instance (no HA) | Patroni HA with automatic failover |
| Multi-Cloud | GCP-locked | Any provider (AWS, GCP, Azure, bare metal) |
| AI Diagnostics | None | Built-in (Z-Score + LLM) |
Migration Steps
1. Export your Railway data
- Export Railway Postgres databases via
pg_dump - Download Railway volume snapshots
- Export Redis data from Railway Redis plugin
- Copy environment variables from Railway dashboard
2. Keep your Dockerfile — no changes needed
Railway and Grid both use standard Docker containers. Your existing Dockerfile and railway.json will work on Grid with minimal changes. The Nixpacks builder also auto-detects your language.
3. Deploy to Grid
- Connect your GitHub repository to Grid
- Create a new service — your repo will be auto-detected
- Set environment variables (copy from Railway)
- Click Deploy
4. Migrate your database
# Export from Railway
pg_dump --no-owner postgresql://railway:...@... > backup.sql
# Import to Grid's managed Postgres
psql postgresql://grid:...@... < backup.sql5. Configure addons
Grid includes managed addons that replace Railway plugins:
- PostgreSQL — included, with Patroni HA replication
- Redis — included, for caching and pub/sub
- Persistent Volumes — included, any size
- Custom Domains — included, with auto-SSL
6. Point your domain
Update your DNS A record to point to your Grid server IP. Caddy automatically provisions Let's Encrypt SSL certificates — no manual cert management.
What changes in your workflow
railway up→git pushor Grid CLIrailway run→ Grid's web dashboard or APIRAILWAY_*env vars → no longer needed (Grid providesGRID_*equivalents)- Same Docker workflow — your existing containers run unmodified
What you gain
- 80%+ cost reduction at scale — Railway's usage markup adds up fast
- Predictable pricing — flat server cost, not per-minute billing
- Multi-cloud flexibility — deploy across providers or migrate freely
- Database HA — automatic failover, not a single point of failure
- Built-in AI diagnostics — automatic root cause analysis for failures