Railway vs Fly.io

Railway suits teams that want a managed platform with a config file, per-second usage billing and four regions. Fly.io suits teams that need VM-level placement across 17 regions and API control, and self-hosted Coolify fits when the platform and its data must run on servers you control.

On this page

Railway vs Fly.io: which fits your team

If a renewal, a usage bill that grew, a data location requirement or a new app to place is driving this decision, this section shows which platform fits your team. Both run your applications on managed infrastructure, so the choice turns on where workloads must run and how much control your team wants over placement. Railway fits teams that want a simple project model and a bill built from a plan fee plus usage, with four documented regions: US West in California, US East in Virginia, EU West in Amsterdam and Southeast Asia in Singapore. Fly.io fits teams that want to choose placement closely, because it lists 17 regions and runs apps as Fly Machines that can be created, started, stopped and placed through its API or flyctl.

Railway suits a team that wants few placement decisions and a bill it can forecast from one plan. The Hobby plan is $5 per month with $5 of usage included, and Pro is $20 per workspace per month with $20 of usage included, while every compute, volume and egress line is metered per second or per GB on top of that fee. Check the Railway pricing page against your expected usage, and confirm that moving a service with an attached volume to another region requires downtime while the volume migrates. Fly.io suits a team that wants to set regions and VM sizes per process in fly.toml, but it adds more cost lines: Machines are billed by CPU preset, RAM and region, volumes cost $0.15 per GB per month, and outbound transfer costs $0.02 per GB in North America and Europe. Fly.io has no free tier for new organizations beyond a trial, so budget for a paid start.

Which scenarios favor Railway and which favor Fly.io

This table matches common situations to the platform that usually fits them better, based on the published pricing, regions, API and contract terms of each product. Read each row as a condition: if your situation matches the scenario, the reason in the right column is where the advantage starts to matter. Neither platform is the better choice everywhere, and the main takeaway is that region, contract terms and traffic shape decide most of the answer.

ScenarioBetter fitWhy
Small team shipping one web app with a databaseRailwayApplies when one app and one database make up the workload. Hobby plan lists $5 per month with $5 of usage.
Team that needs EU placement in one locationEitherApplies when Amsterdam is enough. Both offer it; moving a Railway service with a volume needs downtime.
Team that needs several European regionsFly.ioApplies when services must sit in several EU cities. Fly.io lists Amsterdam, Stockholm, Paris, Frankfurt and London. Railway's EU region is Amsterdam only.
Team that automates deploys through an APIFly.ioApplies when Machines are created and destroyed by code. Its REST API covers create, start, stop and destroy.
Team that needs SSO or a BAA through contractRailwayApplies when procurement requires them. Railway lists SSO and HIPAA BAAs for Enterprise or annual committed spend. Ask Fly.io what its enterprise terms cover.
Team whose bill is driven by egressFly.ioApplies when egress drives the bill. Fly.io charges $0.02 per GB outbound in North America and Europe, Railway $0.05 per GB.
Team whose bill is driven by memoryFly.ioApplies when RAM is most of the bill and usage is steady. Fly.io offers reservations at about 40% off; Railway bills RAM per second.

How the decision path sorts Railway, Fly.io and self-hosting

The diagram starts with one question: must the app and its data stay on servers your organization runs? If yes, the path leads to self-hosted Coolify, Dokku or Dokploy. If no, it asks whether the team needs regional VM placement, which points to Fly.io Machines. Otherwise it reaches a managed platform with a config file, where a compliance or SSO requirement decides between Railway's Enterprise contract and its standard plans. Check each branch against your data residency, identity and audit requirements, and confirm SSO and HIPAA terms with the vendor before you sign.

Decision path from data location to Railway, Fly.io or self-hosted tools.

Railway vs Fly.io capabilities side by side

This table compares Railway and Fly.io on builds, configuration, regions, compute, storage, health checks, compliance terms and support tiers. Where a Fly.io term is not covered here, confirm it directly with Fly.io in writing before you rely on it. The main takeaway is that Railway offers one EU region in Amsterdam, while Fly.io offers 17 regions with several in Europe, so residency and compliance terms should shape your shortlist.

CapabilityRailwayFly.io
BuildsRailpack by default, or a DockerfileCloud Native Buildpacks builder, an existing image or a Dockerfile
Config filesrailway.toml or railway.json, deprecated in favor of infrastructure as code; legacy support runs until December 1, 2026fly.toml sets primary region, build, services, VM size, volumes, processes and health checks
RegionsFour: US West (California), US East (Virginia), EU West (Amsterdam) and Southeast Asia (Singapore)17 regions, including Amsterdam, Stockholm, Paris, Frankfurt and London
Compute modelPlan fee plus per-second vCPU and RAM usage; Hobby caps each service at 48 vCPU and 48 GBFly Machines, fast-launching VMs billed by CPU preset, RAM and region, controlled through the API or flyctl
Persistent storageVolumes at about $0.15 per GB-month (Railway pricing page); 5 GB maximum on Hobby, 1,000 GB on ProVolumes at $0.15 per GB-month; snapshots at $0.08 per GB-month with the first 10 GB free (Fly.io pricing docs)
Health checksDefined as healthchecks in the config file; confirm how failed checks affect deploys in Railway's docsDefined in fly.toml; a failed health check stops the deploy (Fly.io configuration reference)
SSO and compliance termsSSO on Enterprise or with annual committed spend; HIPAA BAAs and contractual SLAs through Enterprise agreementsConfirm SSO, HIPAA BAA availability and data processing terms with Fly.io in writing
Support tiersCustom Enterprise pricing with support SLOs and contractual SLAs; confirm tiers below Enterprise with RailwayCommunity (free), Standard at $29 per month, Premium at $199 per month, Enterprise from $2,500 per month (Fly.io pricing docs)

How Railway vs Fly.io pricing differs in what drives the bill

Both platforms bill for running resources, but they meter different lines. Railway adds a plan fee to per-second usage, while Fly.io bills each Machine, volume, snapshot, transfer and support line separately. Use these cards to find which line your workload will hit first, then ask for the matching quote.

Railway plan fee and usage rates

Railway's pricing page lists a Free plan with $1 of usage per month, Hobby at $5 per month with $5 of usage, and Pro at $20 per workspace per month with $20 of usage and unlimited seats. Usage beyond the included amount is billed per second, at $0.00000772 per vCPU-second (about $20 per vCPU-month) and $0.00000386 per GB-second of RAM (about $10 per GB-month). The same page lists volumes at about $0.15 per GB-month, egress at $0.05 per GB and object storage at $0.015 per GB-month. Check the per-service caps too, since the page lists 48 vCPU and 48 GB on Hobby.

Railway pricing

Fly.io Machine billing by preset

Fly.io bills each Machine by CPU preset, RAM and region, so the preset you pick sets most of the compute line. Fly.io's pricing docs charge $6.00 per GB per month for RAM beyond a preset, and $0.15 per GB per month for the root file system of a stopped Machine. Reservations offer about 40% off, according to the same docs, which matters for steady workloads. Confirm the region for each service, because region is part of every Machine price.

Fly.io pricing

Fly.io volumes, snapshots and transfer

Fly.io's pricing docs list volumes at $0.15 per GB per month and snapshots at $0.08 per GB per month, with the first 10 GB of snapshots free each month. Outbound transfer costs $0.02 per GB in North America and Europe, $0.04 in Asia Pacific, Oceania and South America, and $0.12 in Africa and India, according to the same docs. Inbound data is free, so the outbound region of your users and services drives this line.

Fly.io support plans and Managed Postgres

Fly.io's pricing docs list support plans as Community at no charge, Standard at $29 per month, Premium at $199 per month and Enterprise from $2,500 per month. Managed Postgres plans range from $38 per month (Basic) to $1,922 per month (Performance), with storage at $0.28 per GB per month, according to the same docs. Fly.io has no free tier for new organizations beyond a trial, so plan for the first paid line before you deploy.

Coolify edition and server costs

Coolify's self-hosted edition is licensed under Apache-2.0, and Coolify's pricing page describes it as free forever with all features and no limitations. Coolify Cloud costs $5 per month for 2 connected servers plus $3 per month for each additional server, with a 20% discount on annual billing, and you bring your own servers. The servers are a separate bill from your provider, so ask that provider for a quote on the server size and count you need.

Coolify pricing

Recurring self-hosting operations

Self-hosting adds work that recurs every month: backups, monitoring, patching and on-call time for your own team. Coolify's guide for teams coming from managed platforms notes that a rollback can redeploy a retained application image but does not restore databases or persistent files, so backup schedules and restore tests are yours to run. Ask your team to estimate on-call hours and patch cadence, and confirm who owns each line before comparing against Railway or Fly.io usage.

Coolify migration guide

How each platform defines builds, regions and health checks

Railway's configuration lives in a config as code file, either railway.toml or railway.json, that sits in the repository and sets the builder, build, start and pre-deploy commands, healthchecks, restart policy, cron schedules and multi-region replicas for a service. The builder defaults to Railpack, and a Dockerfile can be named instead. Railway has deprecated these files in favor of infrastructure as code and lists legacy service support until December 1, 2026. Confirm with Railway whether that date still holds for your account before you rely on either file for new work. Region changes are the one place where configuration and stored data interact. A service's region can be changed without downtime, except when the service has an attached volume, which must be migrated to the new region with downtime while the migration runs. Check which services have volumes before planning any region move. The Railway config as code reference lists the supported keys.

Fly.io keeps the equivalent settings in a fly.toml file. It sets the primary region, build settings (a Cloud Native Buildpacks builder, an existing image or a Dockerfile), release commands, services, VM sizing, volume mounts, processes and health checks. Health checks affect deploys directly: a failed health check stops the deploy, so test the check path in a staging app before depending on it. The underlying VMs are Fly Machines, which can be created, started, stopped and destroyed through the Machines REST API or flyctl, placed in a chosen region, and given ephemeral or attached persistent storage. Teams that want deploy steps driven from CI can script this directly. The trade-off is that sizing, placement and lifecycle decisions then live in code and scripts your team must review and maintain. The fly.toml configuration reference describes each section.

When comparing the two, build a table with one row per service that lists its builder, start and pre-deploy commands, health check path, restart behavior, replica count, region and whether it uses a volume. Mark which settings each platform keeps in a file and which live only in a dashboard or API call, because those are the settings that will need rebuilding during any move. Ask Railway to confirm the current status of railway.toml and railway.json for your services, and do not assume the December 1, 2026 date has been extended. On Fly.io, confirm release command and health check behavior with a real failed deploy in staging, since the file only states intent. Then decide whether your team wants configuration it reviews in pull requests, an API it calls from automation, or a mix of both.

Where data lives and what leaving Railway or Fly.io involves

Each card covers one point where a Railway or Fly.io decision becomes hard to reverse: where data sits, how configuration is written, how data is copied out and who can administer the account. Read them in order if you are preparing an exit, since the data location and copy steps set the cutover plan.

Data location and region choice

Railway's documentation lists four regions: US West Metal in California, US East Metal in Virginia, EU West Metal in Amsterdam and Southeast Asia Metal in Singapore. Fly.io's regions page lists 17, including Amsterdam, Stockholm, Paris, Frankfurt and London. On Railway, a service can change region without downtime, but a service with an attached volume needs that volume migrated, which causes downtime while the migration runs. Confirm with each vendor in writing where backups, logs and volume snapshots are stored before any residency review.

Railway regions docs

Configuration format and API lock-in

Railway's railway.toml and railway.json files set the builder, build, start and pre-deploy commands, healthchecks, restart policy, cron schedules and multi-region replicas. Railway has deprecated these files in favor of infrastructure as code, and legacy services are supported only until December 1, 2026. Fly.io's fly.toml sets the primary region, build settings, release commands, services, VM sizing, volume mounts and health checks, and it lives in your repository. Machines can also be created, started, stopped and destroyed through the Fly.io REST API or flyctl. Ask each vendor which export tooling produces a complete copy of these settings.

Railway config docs

Exit mechanics and data copies

Leaving either platform means dumping each database, copying each volume and rebuilding each service on the new host. Coolify's guide for teams coming from managed platforms notes that a rollback can redeploy a retained image but does not restore databases or persistent files, so the data copy must be a separate step you test. Rehearse a restore from your database dump in the target environment before you move domains. Confirm the export path for each volume type on both platforms, since the copy method for attached storage determines how much downtime the cutover needs.

Coolify migration guide

SSO and admin controls

Railway lists SSO on Enterprise plans or with annual committed spend, and it offers HIPAA BAAs only through Enterprise agreements. Confirm whether Fly.io provides SSO and audit logs, and on which plan, before you commit to a platform for regulated workloads. Ask both vendors which admin roles exist, whether audit events can be exported to your own log store and how access is revoked centrally when someone leaves the team.

Railway pricing

When a self-hosted option like Coolify fits better

Choose a self-hosted platform when the application platform and its data must run on servers and accounts your organization controls, or when usage billing that rises with traffic is the main concern. Coolify is the option most often weighed against Railway and Fly.io. It is licensed under Apache-2.0, and its free self-hosted edition is described on its pricing page as free forever with all features. You add your own servers, Coolify connects to each one over SSH and prepares it to run Docker workloads, and it deploys from a Git repository, a Dockerfile, a Docker Compose file or a prebuilt image. Routing and HTTPS run through Traefik by default or Caddy. The first stable release, v4.0.0, shipped on April 27, 2026, but confirm the current release on GitHub before you plan around a version. Start by listing which workloads and databases carry regulated data, and which accounts and hosts they must sit in.

Dokku is the most minimal option. It is MIT licensed, describes itself as an open source PaaS alternative to Heroku, and ships nginx as its default proxy, with Caddy, HAProxy, OpenResty or Traefik as alternatives. It suits a team that is comfortable running commands on each host. Dokploy is open core. Code outside its proprietary directories falls under Apache 2.0, while those proprietary directories hold SSO, SCIM, audit logs and custom roles under the Dokploy Source Available License. If your access review depends on those features, read the Dokploy license file and confirm the terms in writing first. CapRover's license is Apache 2.0 with an appendix that restricts modifying paid features and redistributing paid versions, so it is not under a plain OSI-approved license and needs legal review before adoption.

Self-hosting turns a usage invoice into recurring operating work spread across several components, and each one should appear as its own line in a quote. Servers are a monthly provider cost, and a single host remains a single point of failure until you add redundancy. SSH access needs named accounts, key rotation and a record of who logged in to which host. Backups need an off-host copy and scheduled restore tests, because a rollback can redeploy an application image but does not restore databases or persistent files. Monitoring, OS and Docker patching, and proxy and TLS certificate renewal recur every month, and on-call time covers the nights when an alert fires. Ask each provider who performs each item, how often, and what evidence they leave behind. Your internal hours count toward the total even when nobody invoices them.

What moving between Railway and Fly.io involves

The sequence moves each Railway service to Fly.io in six stages, from inventory to decommissioning, and ends with the old services removed and every domain served from the target. Effort depends on the number of services and the size of the data to move, so the way to get timing is a scoped quote, which DeployOpen prepares from a written scope agreed before work starts.

  1. Inventory services, volumes, databases and regions

    List every Railway service with its build settings, start and pre-deploy commands, environment variables, cron schedules, custom domains, attached volumes and databases. Record the Railway region of each service. Railway's documentation lists four regions: US West in California, US East in Virginia, EU West in Amsterdam and Southeast Asia in Singapore, so confirm where each service runs today. For each service, choose a Fly.io primary region from the 17 listed, and note any data residency requirement that limits the choice. Done when one row per service shows its volumes, databases, domains and target region, and the owning team has signed off on it.

  2. Translate config and choose a build path

    Map each railway.toml or railway.json file to a fly.toml. Railway's config covers the builder, build, start and pre-deploy commands, healthchecks, restart policy, cron schedules and multi-region replicas. The fly.toml file sets the primary region, build settings, release commands, services, VM sizing, volume mounts, processes and health checks. Cron schedules and replica placement may need a different design on Fly.io, so review each one. Railway has deprecated these files in favor of infrastructure as code, with legacy support listed through December 1, 2026, so confirm their current status with Railway. Then choose the build path: Railpack or a Dockerfile on the Railway side, and on Fly.io a Cloud Native Buildpacks builder, an existing image or a Dockerfile. Done when each app has a reviewed fly.toml in Git and its build succeeds on Fly.io.

  3. Dump databases and copy volumes

    Stop writes to each database or plan a final sync, then dump it with the database's native tooling and restore it to the target on Fly.io. Fly.io Managed Postgres is one option if the workload fits its plans. Copy the files from each attached volume to the Fly.io volume that the new fly.toml mounts. Railway's documentation says a service with an attached volume needs the volume migrated when its region changes, and the migration runs with downtime, so plan that window if you move regions on Railway. Keep the Railway source untouched until cutover. Done when row counts, checksums or file listings match between source and target, and a test restore of the dump succeeds.

  4. Deploy, run health checks and test staging

    Deploy each app to Fly.io under a staging name first, using the same images and environment variables with test data or a restored copy. Fly.io stops a deploy when a health check fails, so confirm that each check reflects the app's readiness and fix any failing deploy before continuing. Run the staging test plan against the target, covering sign-in, core write paths, background jobs, scheduled tasks and outbound calls. Compare responses with the Railway services for the same inputs. Done when health checks pass on every process, the test plan is signed off, and the team has recorded any differences that remain.

  5. Cut over domains and DNS with rollback

    Lower DNS record TTLs ahead of the change so a revert takes effect sooner, and confirm your DNS provider's minimum TTL. Add the custom domains to the Fly.io apps and confirm certificates are issued. Schedule the cutover, freeze writes to the Railway databases if the target copy is not current, and run the final data sync. Update DNS records to point at Fly.io. Write the rollback plan before the change: which records revert, to which Railway targets, and who approves the revert. Keep Railway running until the new traffic has been checked. Done when public requests resolve to Fly.io, smoke tests pass from outside your network and the team has reviewed the rollback path.

  6. Decommission Railway services after confirmation

    After the confirmation period agreed in your cutover plan, stop the Railway services. Delete them only after the retention period for data and backups has run. Remove Railway volumes and databases only after a final backup is stored outside Railway. Check the Railway invoice to confirm usage charges have stopped, and keep a record of what was moved and deleted. Done when a closure record lists every service with its Fly.io target and deletion date, and the final Railway invoice confirms that usage has ended.

Questions buyers ask before choosing Railway vs Fly.io

Is Railway or Fly.io cheaper for my app?

Neither is cheaper in general, because the answer depends on your usage shape, so run both pricing pages against a real usage profile. Railway bills a plan fee, with Hobby at $5 per month including $5 of usage and Pro at $20 per workspace per month including $20 of usage, plus per-second vCPU, memory, volume and egress charges, according to Railway's pricing page. Fly.io bills Machines by CPU preset, RAM and region, charges $0.15 per GB per month for volumes and $0.02 per GB of outbound data in North America and Europe, according to Fly.io's pricing docs. Always-on services, large memory footprints, storage and egress weigh differently on each bill. Add support plans to the comparison, since Fly.io lists Standard at $29 per month and Premium at $199 per month.

How long does it take to move from Railway to Fly.io?

The timeline depends on how many services you run, how much data they hold and how cutover is planned, and the duration is set in the written scope before work starts. Stateless services built from a Dockerfile or buildpacks usually move fastest, because most of the work is translating configuration. Databases and volumes take longer, since you dump, restore and verify the data, then plan a window for the switch. Railway's docs note that moving a service with an attached volume between regions requires migrating the volume, with downtime while that runs, so test that on your own data. Health checks, release commands and cron schedules also need translating, so include them in your inventory.

What do I need to provide for a platform migration?

You provide access, a service inventory, a staging environment, a DNS owner and a sign-off owner. In practice that means:

  • Accounts and access: admin access to the Railway project and the Fly.io organization, plus the Git repositories and current build settings.
  • A service inventory: every service, worker, cron job, database, volume, environment variable group and domain.
  • A staging environment: a place to deploy and test the moved services before any traffic changes.
  • A DNS owner: someone who can change records and certificates at short notice during cutover.
  • A sign-off owner: a named person who accepts the cutover plan, the rollback plan and the post-move checks.

Missing any of these usually delays the schedule more than the technical work does, so confirm each one before the scope is signed.

Can my team migrate off Railway without outside help?

Yes, for a simple app your team can often move it alone using the vendor CLI and documentation, but databases and compliance evidence make the work harder. A single web service with a Dockerfile, a few environment variables and no persistent data is a reasonable first project for an in-house engineer. The harder parts are verified database dump and restore, volume data, zero-downtime cutover, rollback planning and the logs and change records an auditor will request. Before deciding, count how many people have run production migrations and how much time they can release from feature work. If the target is a self-hosted platform such as Coolify, DeployOpen can plan, implement and document the move within a fixed scope agreed in writing. It prepares evidence for compliance assessments but does not issue audit reports or certifications.

Does Railway or Fly.io meet HIPAA or data residency needs?

Railway offers HIPAA BAAs only through Enterprise agreements, according to its pricing page, so a BAA is not part of the Hobby or Pro plans as listed. Confirm directly with Fly.io whether it will sign a BAA, and get the answer in writing. For residency, Railway lists four regions, including EU West in Amsterdam, while Fly.io lists 17 regions, including Amsterdam, Frankfurt, Paris, London and Stockholm. Region choice alone does not settle residency, so check where backups, logs, volume snapshots and support access are stored and processed. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue the reports and certifications.

What does self-hosting add to the bill and the workload?

Self-hosting replaces metered platform usage with servers you rent or own, plus the work the platform did for you. The software can be free: Coolify's pricing page describes its self-hosted edition as free forever with all features, and its code is Apache-2.0 licensed. The recurring costs are servers, storage, backups and off-site copies, monitoring and alerting, and on-call time for incidents, patching and upgrades. Rollback also becomes your job, because a rollback can redeploy a retained application image but does not restore databases or persistent files, as Coolify's guide for teams coming from managed platforms explains. Ask for any quote to list each of these components separately, along with who patches the host, who responds to alerts outside business hours and how restores are tested.

How DeployOpen helps evaluate and run the chosen platform

DeployOpen helps teams compare Railway and Fly.io against a self-hosted option, then plans and implements the platform that fits. Engagements are fixed-scope, with deliverables and timelines agreed in writing before work starts. Self-hosted work runs in your own cloud accounts, data centers or air-gapped networks, and the comparison covers regions, configuration files, usage billing and exit paths.

How we scope

  • Written scope that names the platform, workloads, regions and services included in the Railway or Fly.io comparison
  • Review of Railway's per-second usage rates and Fly.io's Machine and volume pricing against your current bills
  • Data residency, support plan and exit requirements recorded before any platform is chosen or configured

How we build

  • Platform configuration for your builds, health checks and release commands on Railway or Fly.io
  • Self-hosted builds with Coolify, connected to your servers over SSH, using Git, Dockerfile or Compose sources
  • Hardening, secrets handling, backups and access controls set up in your accounts and documented for review

How we hand over

  • Runbooks covering deploys, rollbacks, scaling, region changes and volume handling for the chosen platform
  • Backup and restore steps, since a Coolify rollback redeploys an image but does not restore databases or persistent files
  • Exit plan that lists the data export, DNS cutover and configuration files needed to leave the platform

How we support

  • Retainer options for ongoing support, upgrades and continuous testing after handover
  • Security testing of applications, APIs and cloud configuration, with the hosting setup in scope when agreed
  • Upgrade planning for self-hosted Coolify, including the v5 work its v4 release notes preview

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.