Deploy Code Server by linuxserver.io
Run full VS Code in the browser anytime, anywhere
code-server
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.

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.

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:
| 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.
Template Content
code-server
linuxserver/code-server:latestPASSWORD
