Railway

Deploy Code Server by linuxserver.io

Run full VS Code in the browser anytime, anywhere

Deploy Code Server by linuxserver.io

Just deployed

/config

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

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

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

Implementation Details

Environment variables used by this template:

VariableDescriptionNotes
PASSWORDPassword to access the web UIRequired (set by you)
SUDO_PASSWORDPassword for sudo inside the terminalAuto-generated by Railway
PUID / PGIDUser and Group IDDefault: 1000
TZTimezoneDefault: UTC
DEFAULT_WORKSPACEFolder 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.


Template Content

More templates in this category

View Template
Rocky Linux
[Jul'26] Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
32
View Template
Foundry Virtual Tabletop
A Self-Hosted & Modern Roleplaying Platform

Lucas
71
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta
51