Deploy Windows
A personal Windows PC in the cloud for apps your Mac or Linux cannot run.
Just deployed
/storage
Deploy and Host a Windows Cloud PC on Railway
Sooner or later most Mac, Linux and Chromebook users hit a program that only runs on Windows: a tax tool, a bank's signing utility, a hardware configurator, an old business app or an Office macro. This template gives you a personal Windows PC in the cloud for exactly those moments. It installs Windows in a virtual machine on Railway, then you open it in a browser tab or connect with any Remote Desktop app. Your programs and files stay on a persistent volume between sessions. It is built on dockur/windows, an MIT-licensed project with about 54,200 GitHub stars that runs Windows in QEMU, and uses its v6.06 release. Railway has no hardware virtualization, so Windows runs under CPU emulation: slower than a real PC, but fine for occasional apps and light work. A Railway Pro plan is required for the memory and disk Windows needs. Windows 365 cloud PCs cost roughly $30 or more per user per month (approximate).
What This Template Deploys
| Service | Purpose |
|---|---|
| windows | ghcr.io/two-workspaces/windows, based on dockur/windows 6.06. Runs Windows in QEMU and serves a web desktop on port 8006 with a public domain. A TCP proxy on port 3389 provides Remote Desktop. Health check on /healthcheck. |
| Volume | Mounted at /storage and holds the Windows virtual disk, so installed programs, documents and settings are kept between restarts. |
Before Windows starts, the service checks that it has enough memory and disk. If the plan is too small, it shows a page explaining what is missing instead of failing.
About Hosting a Windows Cloud PC
A cloud PC is useful when you need Windows only sometimes and do not want a second computer, dual boot or a local virtual machine eating your laptop's memory.
Works from any device. Use Windows from macOS, Linux, ChromeOS, an iPad or a borrowed computer, in a browser tab with nothing to install.
Remote Desktop for daily use. Connect Microsoft's Windows App, Remmina or any RDP client for a smoother picture, clipboard sharing and full-screen mode.
Install once, use whenever. Programs you install stay on the volume, so the next session starts where you left off.
Your choice of Windows. Install Windows 11 or 10 for desktop apps, an LTSC edition for a lean system, or Windows Server 2022, 2025 or 2019.
Hands-free setup. The installer comes straight from Microsoft and Windows configures itself with your username and password.
Keeps your laptop clean. Odd installers, drivers and trial software stay in the cloud PC, not on your own machine.
Deploy a Windows Cloud PC in Under 5 Minutes
- Switch your workspace to Railway Pro, then click Deploy on Railway.
- For desktop apps, set
VERSIONto11or10before the first boot; the default is Windows Server 2022. - Open the public domain and sign in with
USERNAMEandPASSWORDfrom the service variables. - Wait for the download and unattended install. Under emulation it takes roughly 30 to 90 minutes. Do not redeploy or restart during the install, or it starts again.
- When the desktop appears, install the app you need, or connect over RDP using the TCP proxy address under Settings, Networking.
Common Use Cases
- Windows-only apps on a Mac: tax and accounting software, bank tools or vendor utilities.
- Linux desktops: run the occasional program that has no Linux version and fails under Wine.
- Chromebooks and tablets: reach a real Windows desktop from devices that cannot run it.
- Office macros and add-ins: run Windows-only Excel macros or add-ins.
- Legacy business software: keep an old Windows program alive without old hardware.
- Trying software safely: test unknown installers away from your own computer.
- Long jobs: leave a Windows program running while your laptop is closed.
- Remote teams: share one Windows machine for a tool everyone needs only now and then.
Configuration
| Variable | Default | Description |
|---|---|---|
USERNAME | admin | Windows account and web login name |
PASSWORD | 🔐 Auto-generated | Windows and web login password, Win- plus a random secret |
VERSION | 2022 | Edition for the first install: 11, 10, 11l, 10l, 2025, 2022 or 2019 |
RAM_SIZE | 4G | Memory for Windows; the service uses this plus about 2 GB |
CPU_CORES | 4 | Virtual CPU cores for Windows |
PORT | 8006 | Web desktop port; leave as is |
RAILWAY_DEPLOYMENT_DRAINING_SECONDS | 120 | Time Windows gets to shut down before a redeploy |
Pick the edition first. VERSION only matters on the first install. To switch later, clear the volume so a fresh install runs.
Disk space. The first install needs about 30 GB. A 50 GB Pro volume gives a Windows disk of about 38 GB. For more, resize the volume, set DISK_SIZE such as 120G, restart, and extend drive C: in Disk Management.
Memory. 4 GB suits light apps. Give heavier programs 6 to 8 GB with RAM_SIZE, and allow 2 GB more for the service.
Moving files in and out. With RDP, copy and paste files or share a local folder as a drive in your RDP client. In the browser desktop, download files through Edge or sign in to your cloud storage on Windows.
Keyboard and language. Set your keyboard layout and display language in Windows Settings after the first boot; your RDP client can also pass your local layout through.
Licensing. Windows installs as a Microsoft evaluation edition: 90 days for Windows 11 and 10 Enterprise, 180 days for Server, unless you activate it with your own license key. You are responsible for licensing the copy you run.
Saving Money and Staying Safe
Shut down when you are done. A running Windows VM uses about 6 GB of memory and busy CPU, which can cost roughly $70–150/month if left on all the time. Shut Windows down from the Start menu after each session; the service then idles on a small page and costs very little. Restart the deployment to boot it again.
Avoid Railway Restart while Windows runs. Restart stops the machine within seconds, like pulling the plug. Shut down from the Start menu first. A redeploy gives Windows two minutes to close cleanly.
Use a strong password. The web desktop and RDP are both public and protected only by the Windows login. Keep the generated password, or replace it with an equally strong one.
Install Windows updates. Run Windows Update now and then, especially if you browse the web on the cloud PC.
Expect emulation speed. Office tools, utilities and forms work well. Games, video editing, 3D apps, WSL 2 and Hyper-V do not.
Windows Cloud PC vs. Alternatives
| Feature | Windows Cloud PC on Railway | Windows 365 | Parallels Desktop | Wine or CrossOver |
|---|---|---|---|---|
| Runs on | Railway | Microsoft cloud | Your Mac | Your Mac or Linux |
| Real Windows | ✅ | ✅ | ✅ | ❌ |
| Works from any device | ✅ | ✅ | ❌ | ❌ |
| Uses no laptop resources | ✅ | ✅ | ❌ | ❌ |
| Speed | Emulated, slower | Fast | Fast | Varies by app |
| License | Bring your own | Included | Bring your own | Not needed |
| Price | Usage-based; low when shut down | Roughly $30+/user/month (approximate) | Yearly subscription | CrossOver paid, Wine free |
Windows 365 and Parallels are faster for daily heavy use. Wine avoids Windows but many apps fail. This template suits occasional Windows apps from any device, paid mostly for the hours it runs.
Dependencies for Windows Cloud PC Hosting
- A Railway account on the Pro plan.
- Optional: a Windows license key to activate beyond the evaluation period.
Deployment Dependencies
- dockur/windows on GitHub: the QEMU and web viewer project behind this template
- Microsoft Evaluation Center: source of the evaluation editions
- Windows App: Microsoft's Remote Desktop client for Mac, iPad and more
Implementation Details
The container runs QEMU with emulated hardware and stores the Windows disk on the volume. A start-up check confirms memory and disk, and noVNC serves the desktop over HTTPS through Railway's domain.
Frequently Asked Questions
Can I run Windows apps on my Mac with this? Yes. Install them on the cloud PC and use them in a browser tab or an RDP app.
How much does it cost? It is usage-based. Running all the time can reach roughly $70–150/month; shutting down after sessions costs far less.
Why do I need Railway Pro? Windows needs about 6 GB of memory and 30 GB of disk, which exceeds smaller plans.
How long does setup take? Roughly 30 to 90 minutes for the first install. Later boots are much faster.
Is Windows licensed? It installs as an evaluation edition. Activate it with your own key for long-term use.
Can I play games or use WSL 2? No. There is no GPU and no nested virtualization, so games, WSL 2 and Hyper-V will not run.
Why Deploy and Host a Windows Cloud PC 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 a Windows Cloud PC on Railway, you get a personal Windows machine you can open from any device, with your apps and files kept on your own volume.
Template Content
