---
title: "Deploy Coder on Railway.app - Blog - Coder"
description: "Read our latest blog posts on various topics including engineering, product, and company updates."
image: "/api/dynamic-og?title=Deploy+Coder+on+Railway.app&randomBackground=true&styles=%7B%22height%22%3A162%2C%22width%22%3A302%2C%22padding%22%3A16%2C%22titleSize%22%3A24%2C%22logo%22%3A%7B%22width%22%3A80%2C%22height%22%3A12.15%7D%7D"
canonical: "https://coder.com/blog/deploy-coder-on-railway-app"
---

Apr 6 20233 min read

# Deploy Coder on Railway.app

[M Atif Ali](https://coder.com/blog/author/matifali)

Share this article

Railway is a simple and powerful deployment platform that focuses on giving you and your team a deployment plane that radically increases developer efficiency. It is an Heroku alternative that focus on support and developer experience. A highly engaged community and Resource-based pricing, only pay for what you use. Railway has a range of templates to deploy your apps. It also has a free tier that you can use to deploy your apps for free. We have built and published a template for Coder on Railway.app. Coder can be deployed on Railway.app in just a few clicks. This guide will walk you through the process of deploying Coder on Railway.app.

## Quickstart

Start your deployment by clicking the button below. This will take you to Railway.app where you can sign up for a free account and deploy Coder.

[![Deploy on Railway](https://railway.app/button.svg)](https://railway.app/template/coder?referralCode=tfH8Uw)

### 1. Fill the environment variables

`CODER_WILDCARD_ACCESS_URL` is an optional environment variable. Set this to a wildcard subdomain that resolves to Coder (e.g. \*.coder.example.com). This is optional, but will enable web-based port forwarding. For example, a service running on port 8080 in your workspace can be accessed by visiting `8080--app-name-workspace-name-.coder.example.com` in your browser. See our [docs](https://coder.com/docs/v2/latest/admin/configure#wildcard-access-url) for details.

> Note: For port-forwarding to work, you have to use a custom domain with Railway and cannot use Railway's built-in domain for this wildcard.
>
>
>
> Note: You can configure Coder by setting more [environment variables](https://coder.com/docs/v2/latest/cli/server). Go to _Dashboard > Coder (Service) > Settings > Environment Variables_.

### 2. Attach a custom domain

Your Coder deployment will always be accessible at `https://<app-name>.up.railway.app`. If you want to use a custom domain, you can do so by going to Dashboard > Coder (Service) > Settings > Domains and adding your domain. Don't forget to attach your wildcard subdomain if you specified `CODER_WILDCARD_ACCESS_URL` in the previous step.

### 3. Create your first user

Create your first user by going to `https://<app-name>.up.railway.app` or your custom domain.

![Coder Setup](https://www.datocms-assets.com/19109/1680778636-coder_setup.png?fit=clip&fm=webp&w=3840&q=90)

### 4. Create your first template

Templates are written in Terraform and describe the infrastructure for workspaces. Coder provides a set of starter templates to help you get started.

Choose a template to set up your first workspace. You can also [create your own templates](https://coder.com/docs/v2/latest/templates) to define your custom infrastructure with your preferred cloud provider.

![Coder Starter Templates](https://www.datocms-assets.com/19109/1680778695-starter_templates_welcome.png?fit=clip&fm=webp&w=3840&q=90)

### 5. Create your first workspace

[**Workspaces**](https://coder.com/docs/v2/latest/workspaces) contain the IDEs, dependencies, and configuration information needed for software development. You can create workspaces from templates. Here we are showing the workspace created from the Fly.io starter template in action.

![fly.io workspace](https://www.datocms-assets.com/19109/1680778073-fly_workspace.png?fit=clip&fm=webp&w=3840&q=90)

- [**Coder Docs**](https://coder.com/docs/v2) Documentation for Coder.
- [**VS Code Extension**](https://marketplace.visualstudio.com/items?itemName=coder.coder-remote): Open any Coder workspace in VS Code with a single click
- [**JetBrains Gateway Extension**](https://plugins.jetbrains.com/plugin/19620-coder): Open any Coder workspace in JetBrains Gateway with a single click
- [**Coder GitHub Action**](https://github.com/marketplace/actions/update-coder-template): A GitHub Action that updates Coder templates
- [**Various Templates**](https://github.com/coder/coder/examples/templates/community-templates.md): Hetzner Cloud, Docker in Docker, and other templates the community has built.

### Subscribe to our newsletter

Want to stay up to date on all things Coder? Subscribe to our monthly newsletter for the latest articles, workshops, events, and announcements.
