| Where apps run | Your own servers | Railway's infrastructure |
|---|
| License | Open source, MIT | Proprietary, hosted |
|---|
| Pricing | Free. You pay for the server | Plan fee (Hobby $5, Pro $20 per workspace each month) plus usage billed per second |
|---|
| Compute cost | Fixed by the server you choose | About $20 per vCPU and $10 per GB of memory each month |
|---|
| Deploy on push | GitHub, GitLab and generic webhooks | Yes |
|---|
| Builds | Dockerfile, Railpack, or a Compose file | Dockerfile or Railpack |
|---|
| Pull request previews | An environment per pull request, removed when it closes | An environment per pull request, removed when it is merged or closed |
|---|
| Rollback | Deploy any of the last 50 deploys again | Redeploy an earlier deployment |
|---|
| Variable references | ${{ project.KEY }} and ${{ secret.NAME }} | ${{ service.VAR }} and ${{ shared.VAR }} |
|---|
| Secrets | Sealed, rotated on a schedule, or read from Infisical, Vault, Doppler or 1Password | Sealed variables |
|---|
| Sleep when idle | Per project, after a set number of idle minutes | Serverless sleeping after inactivity |
|---|
| Data | Folders beside the Compose file | Railway volumes |
|---|
| Change preview | Plan and apply before a change runs | Staged changes before deploy |