The Basics

This document outlines the core concepts of Railway, providing foundational knowledge of the basic building blocks you'll work with in the platform.

In a Nutshell

Dashboard / Projects

Your main entrypoint to Railway where all your projects are shown in the order they where last opened.

Projects contain your services and environments.

Screenshot of the Railway dashboard

Project / Project Canvas

A project represents a capsule for composing infrastructure in Railway. You can think of a project as an application stack, a service group, or even a collection of service groups.

Services within a project are automatically joined to a private network scoped to that project.

Screenshot of the project canvas

Project Settings

This page contains all the project level settings.

Screenshot of the project settings page

Some of the most commonly used project settings are -

  • Transfer Project - Transfer your project between workspaces.

  • Environments - Manage various settings regarding environments.

  • Members - Add or remove members to collaborate on your project.

  • Danger - Remove individual services or delete the entire project.

Services

A Railway service is a deployment target for your deployment source. Deployment sources can be code repositories or Docker Images. Once you create a service and choose a source, Railway will analyze the source, build a Docker image (if the source is a code repository), and deploy it to the service.

Screenshot of the project canvas with services highlighted

Out of the box, your service is deployed with a set of default configurations which can be overridden as needed.

Service Variables

Service Variables provide a powerful way to manage configuration and secrets across services in Railway.

You can configure variables scoped to services. These variables are specific to each service and are not shared across the project by default.

If you want to access variables from this service in another service within the same project, you need to utilize a Reference Variable.

Screenshot of the service variables tab

Service Metrics

Service Metrics provide an essential overview of CPU, memory, and network usage for a given service.

Screenshot of the service metrics tab

Service Settings

This tab contains all the service level settings.

Screenshot of the service settings tab

Some of the most commonly used service settings are -

  • Source - Here you can configure the deployment source, which can be either a GitHub repository with a specific branch or an image with optional credentials.

  • Networking - Generate a Railway-provided domain or add your own custom one.

  • Custom Build Command - Here you can configure a custom build command if you need to overwrite the default, only applicable with Nixpacks based builds.

  • Custom Start Command - Here, you can configure a custom start command if you need to overwrite the default.

Deployments

Deployments involve building and delivering your Service.

Screenshot of a service open with a deployment highlighted

Volumes

Volumes are a feature that allows services on Railway to maintain persistent data.

Screenshot of the project canvas with a volume highlighted

Volume Metrics

Volume Metrics show the amount of data stored in the volume and its maximum capacity.

Screenshot of the volume metrics tab

Volume Settings

This tab contains all the volume centric settings.

Screenshot of the volume settings tab

Some of the most commonly used volume settings are -

  • Mount path - The absolute path where the volume will be mounted within the deployed service.

  • Volume Size - Displays the current volume capacity and offers the option to expand it if your plan permits.

  • Wipe Volume - This action wipes all data in the volume and then redeploys the connected service.

What Next?

If you've read enough for now and are ready to get started, we suggest checking out either of these two resources next -

If you want to go deeper, click the Next button below to head to the next section - Advanced Concepts.


Edit this file on GitHub