---
title: "Deploy code-server"
description: "VS Code in the browser, running on your own Railway service"
category: "Other"
url: https://railway.com/deploy/code-server-5
---

# Deploy code-server

VS Code in the browser, running on your own Railway service

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

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/code-server-5/manifest.json

- **Creator:** zer0person's Projects
- **Category:** Other
- **Total deploys:** 1

## Template content

### code-server

- **Image:** codercom/code-server:latest
- **Start command:** `sh -c 'sudo chown -R coder:coder /home/coder; exec /usr/bin/entrypoint.sh --bind-addr 0.0.0.0:8080 /home/coder'`
- **Public domain:** Yes

## Documentation

# Deploy and Host code-server on Railway

[code-server](https://github.com/coder/code-server) runs VS Code on a remote server and serves it in the browser, so you can code from any device.

## About Hosting code-server

This template runs the official `codercom/code-server:latest` image with a persistent volume at `/home/coder` for your projects, extensions and settings. A random login password is generated and stored in the `PASSWORD` variable of the service. Open the service's Variables tab in Railway to read it, then open the public URL and sign in with it.

## Common Use Cases

- Browser-based development environment from a tablet or Chromebook
- Consistent remote workspace for a team or a course
- Quick edits to a project on a cloud machine

## Dependencies for code-server Hosting

- One service with a volume; nothing else

### Deployment Dependencies

- [code-server on GitHub](https://github.com/coder/code-server)
- [Docker image](https://hub.docker.com/r/codercom/code-server)

## Why Deploy code-server on Railway?

Railway gives you a public HTTPS URL, a persistent volume and automatic restarts with no server to maintain. Treat the generated password as the only protection: rotate it in the Variables tab if it leaks.


## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — 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-5
