---
title: Railway Docs: Deploy Apps, Databases, and Services
description: Guides and reference for Railway: deploy apps, databases, and services, configure builds and scaling, understand pricing, and migrate from other platforms.
---
# Railway Documentation

Railway is an all-in-one intelligent cloud provider that makes it easy to provision infrastructure, develop locally, and deploy to the cloud. Our docs are mapped by topic: core concepts, building and deploying, databases, scaling and monitoring, pricing, security, and how Railway compares to and migrates from other platforms.

- [Quick Start](https://docs.railway.com/quick-start): Deploy in minutes. Jump into our quickstart guide to get your first app running.
- [AI](https://docs.railway.com/ai): Build with Railway using Agent Skills and the MCP server for AI-powered workflows.
- [CLI](https://docs.railway.com/cli): Develop locally and deploy from your terminal with the Railway CLI.
- [Templates](https://docs.railway.com/templates): One-click deployable applications and starters for common use cases.

## Docs by topic

### Get started

Set up your first project, connect your coding agent, and learn how services, environments, and deployments fit together.

- [The basics](https://docs.railway.com/platform/the-basics): How projects, services, environments, and deployments fit together.
- [Quick start](https://docs.railway.com/quick-start): Get your first app running on Railway in a few minutes.
- [Connect your agent](https://docs.railway.com/agents): Set up the CLI, MCP server, and agent skills for your coding agent in one step.
- [Services](https://docs.railway.com/services): What a service is and the ways to create one from a repo, image, or local code.
- [Environments](https://docs.railway.com/environments): Isolated copies of a project for production, staging, and PR previews.

### Build and deploy

Build and ship your code and frontends with Dockerfiles, environment variables, monorepos, the CLI, the MCP server, cloud agents, and sandboxes.

- [Build & deploy](https://docs.railway.com/build-deploy): How Railway turns your code into a running deployment.
- [Deployments](https://docs.railway.com/deployments): Start commands, healthchecks, restart policies, and rollbacks.
- [Deploying a monorepo](https://docs.railway.com/deployments/monorepo): Deploy several services from one repository.
- [Variables](https://docs.railway.com/variables): Set environment variables and reference values across services.
- [Deploying with the CLI](https://docs.railway.com/cli/deploying): Deploy from your terminal with railway up.
- [Railway MCP server](https://docs.railway.com/ai/mcp-server): Let AI coding agents manage your Railway projects.
- [Cloud agents](https://docs.railway.com/cloud-agents): Run coding agents like Claude Code and Codex in a persistent environment on Railway.
- [Sandboxes](https://docs.railway.com/sandboxes): Spin up isolated Linux environments to run code, then tear them down.
- [Deploy a framework](https://docs.railway.com/languages-frameworks): Guides for Next.js, Express, FastAPI, Django, Rails, Laravel, Spring Boot, and more.
- [Static sites](https://railway.com/guides/static-hosting): Deploy a static site with automatic builds, SSL, and custom domains.
- [Frontend environment variables](https://railway.com/guides/frontend-environment-variables): Build-time vs runtime variables in Vite, Next.js, Nuxt, SvelteKit, Astro, and Angular.

### Databases and storage

Add and connect PostgreSQL, MySQL, Redis, and MongoDB databases.

- [PostgreSQL](https://docs.railway.com/databases/postgresql): Add a PostgreSQL database to a project and connect to it.
- [Databases](https://docs.railway.com/databases): The databases Railway supports: PostgreSQL, MySQL, Redis, and MongoDB.
- [Databases reference](https://docs.railway.com/databases/reference): Technical reference for database services and their variables.

### Scale and monitor in production

Scale with autoscaling and replicas, choose regions, cache with the CDN, and monitor with logs, metrics, tracing, and alerts.

- [Scaling](https://docs.railway.com/deployments/scaling): Vertical autoscaling, horizontal replicas, and resource limits.
- [Regions](https://docs.railway.com/deployments/regions): Choose where in the world your services run.
- [Static outbound IPs](https://docs.railway.com/networking/static-outbound-ips): Give a service a fixed egress IP for allowlists.
- [CDN](https://docs.railway.com/networking/cdn): Cache static assets and HTML at the edge.
- [Logs](https://docs.railway.com/observability/logs): View, filter, and search build, deploy, HTTP, and DNS logs.
- [Metrics](https://docs.railway.com/observability/metrics): CPU, memory, network, and disk usage for each service.
- [Tracing](https://docs.railway.com/observability/tracing): Trace requests from Railway's edge through your services with OpenTelemetry.
- [Alerts for crashes and failed deploys](https://railway.com/guides/alerts-crashes-failed-deploys): Get notified in Slack, Discord, or by webhook when something breaks.

### Compare and migrate

Compare Railway with Render, Vercel, Fly.io, Heroku, and DigitalOcean, and move your app over.

- [Railway vs Render](https://docs.railway.com/platform/compare-to-render): How Railway and Render differ on deploys, pricing, and scaling.
- [Railway vs Vercel](https://docs.railway.com/platform/compare-to-vercel): How Railway and Vercel differ on runtime, databases, and pricing.
- [Railway vs Fly.io](https://docs.railway.com/platform/compare-to-fly): How Railway and Fly.io differ on deploys, regions, and pricing.
- [Railway vs Heroku](https://docs.railway.com/platform/compare-to-heroku): How Railway and Heroku differ on deploys, add-ons, and pricing.
- [Railway vs DigitalOcean](https://docs.railway.com/platform/compare-to-digitalocean): How Railway compares to DigitalOcean App Platform and Droplets.
- [Migrate from Vercel](https://docs.railway.com/platform/migrate-from-vercel): Move a Vercel project to Railway, step by step.
- [Migrate from Render](https://docs.railway.com/platform/migrate-from-render): Move Render services and databases to Railway.
- [Migrate from Fly](https://docs.railway.com/platform/migrate-from-fly): Move a Fly.io app to Railway.
- [Migrate from Heroku](https://docs.railway.com/platform/migrate-from-heroku): Move a Heroku app and its add-ons to Railway.

### Pricing

Understand plans, plan limits, usage-based pricing, and billing.

- [Plans](https://docs.railway.com/pricing/plans): What each plan includes, its limits, and how usage is billed.
- [Pricing](https://docs.railway.com/pricing): How Railway's usage-based pricing works.

### Security and compliance

Review how Railway secures your data and its SOC 2 and SOC 3 certifications.

- [Security](https://docs.railway.com/enterprise/security): How Railway secures infrastructure, data, and access.
- [Compliance](https://docs.railway.com/enterprise/compliance): Railway's compliance certifications and documentation.

## Deploy an app in minutes

[Redis](https://railway.com/deploy/redis) · [n8n](https://railway.com/deploy/n8n) · [Elasticsearch](https://railway.com/deploy/elasticsearch) · [Metabase](https://railway.com/deploy/metabase) · [Cal.com](https://railway.com/deploy/calcom) · [MinIO](https://railway.com/deploy/SMKOEA) · [PostHog](https://railway.com/deploy/posthog) · [Resend](https://railway.com/deploy/resend) · [All templates](https://railway.com/templates)
