---
title: "Deploy Code Server"
description: "Run full VS Code in the browser anytime, anywhere"
category: "Other"
url: https://railway.com/deploy/code-server-railway-template
---

# Deploy Code Server

Run full VS Code in the browser anytime, anywhere

**[Deploy Code Server on Railway](https://railway.com/template/code-server-railway-template)**

- **Creator:** codestorm
- **Category:** Other

## Template content

### code-server https://upload.wikimedia.org/wikipedia/commons/thumb/9/9a/Visual_Studio_Code_1.35_icon.svg/960px-Visual_Studio_Code_1.35_icon.svg.png

- **Image:** linuxserver/code-server:latest
- **Public domain:** Yes

## Documentation

# Deploy and Host Code Server on Railway

Code Server lets you run a full Visual Studio Code environment directly in your browser. Powered by the official linuxserver/code-server image, it provides a secure, persistent remote development workspace accessible from any device—no local installation required.

![Code Server by LinuxServer](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/linuxserver_medium.png)

## About Hosting Code Server

Hosting Code Server on Railway is straightforward. Simply set your desired PASSWORD (the only required input) and deploy. Railway automatically generates the SUDO_PASSWORD and handles networking, HTTPS, and persistent storage. A volume is mounted at `/config` so your workspace files, extensions, settings, and configurations survive restarts. The container runs with sensible defaults (PUID/PGID 1000, UTC timezone) and opens the workspace folder by default, giving you a ready-to-use browser-based IDE in minutes.

![Code Server](https://raw.githubusercontent.com/linuxserver/docker-templates/master/linuxserver.io/img/code-server-banner.png)

## Common Use Cases

- Remote development from any device (laptop, tablet, or phone)
- Consistent development environment across multiple machines
- Lightweight cloud IDE for coding, debugging, and terminal access without local setup

## Dependencies for Code Server Hosting

- linuxserver/code-server Docker image
- Persistent volume mounted at `/config`

### Deployment Dependencies

- [linuxserver/code-server Documentation](https://docs.linuxserver.io/images/docker-code-server/)
- [Docker Hub – linuxserver/code-server](https://hub.docker.com/r/linuxserver/code-server)

### Implementation Details

Environment variables used by this template:

| Variable            | Description                                      | Notes                          |
|---------------------|--------------------------------------------------|--------------------------------|
| `PASSWORD`          | Password to access the web UI                    | Required (set by you)          |
| `SUDO_PASSWORD`     | Password for sudo inside the terminal            | Auto-generated by Railway      |
| `PUID` / `PGID`     | User and Group ID                                | Default: `1000`                |
| `TZ`                | Timezone                                         | Default: `UTC`                 |
| `DEFAULT_WORKSPACE` | Folder opened by default                         | `/config/workspace`            |

## Why Deploy Code Server on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Code Server on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — [Jul'26] Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/code-server-railway-template
