---
title: "Deploy Cap (open-source Loom)"
description: "Open-source Loom alternative: record your screen and share a link instantly"
category: "Other"
url: https://railway.com/deploy/cap-open-source-loom
---

# Deploy Cap (open-source Loom)

Open-source Loom alternative: record your screen and share a link instantly

**[Deploy Cap (open-source Loom) on Railway](https://railway.com/template/cap-open-source-loom)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/cap-open-source-loom/manifest.json

- **Creator:** My Projects
- **Category:** Other

## Template content

### Cap https://cdn.jsdelivr.net/gh/CapSoftware/Cap@bb3fc16d931cfa99ba4f9fff736d83b6e62ff627/apps/web/public/logos/logo-solo.svg

- **Image:** ghcr.io/capsoftware/cap-web@sha256:b93679f183fa5ce417e03d0b59dd9bdf094d5491cacf291dbada3fc024b82718
- **Start command:** `/bin/sh -c "HOSTNAME=:: exec node apps/web/server.js"`
- **Health check:** /api/status
- **Public domain:** Yes

### MySQL https://devicons.railway.app/i/mysql.svg

- **Image:** mysql:8.4.13
- **Start command:** `docker-entrypoint.sh mysqld --datadir=/var/lib/mysql/data --innodb-use-native-aio=0 --skip-log-bin --performance-schema=OFF --max-connections=500 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci`

### MediaServer https://cdn.jsdelivr.net/gh/CapSoftware/Cap@bb3fc16d931cfa99ba4f9fff736d83b6e62ff627/apps/web/public/logos/logo-solo.svg

- **Image:** ghcr.io/capsoftware/cap-media-server@sha256:f510bd041e7cc3cb4fcb2f89bef76967639f4e6af714553d439927f818ac76d8
- **Health check:** /health

## Buckets

- **Bucket**

## Documentation

# Deploy and Host Cap on Railway

Cap is the open-source alternative to Loom. Record your screen, camera and microphone with the Cap desktop app for macOS or Windows, and share a link that plays instantly in any browser. Viewers can comment and react, and you can add transcripts and AI summaries. Your recordings stay in storage you own.

## About Hosting Cap

Cap is a Next.js web app with a separate ffmpeg media server. It keeps users and videos in MySQL and stores recordings in S3-compatible storage, and browsers upload and play them through presigned links. A self-hosted install needs generated secrets, a webhook secret shared with the media server, private networking between the services, and a way to log in: Cap signs you in with email codes.

This template runs the official web app and media server images pinned by digest, with MySQL 8.4 on a volume and your recordings in a private Railway Bucket. You can log in without setting up email, and strangers can't create accounts.

## Common Use Cases

- Async video updates, demos and walkthroughs for your team, instead of meetings
- Bug reports and support replies with a screen recording and a share link
- Product demos and onboarding videos embedded in docs or websites
- A private Loom replacement where you own the recordings and the data
- Recording tutorials with transcripts and AI-generated chapters

## Dependencies for Cap Hosting

- MySQL 8.4
- Railway Bucket (S3-compatible storage) for recordings
- Cap media server (ffmpeg)

### Deployment Dependencies

- Cap: https://github.com/CapSoftware/Cap
- Self-hosting docs: https://cap.so/docs/self-hosting
- Desktop app: https://cap.so/download

### Implementation Details

**What you set:** nothing is required. Optional: `CAP_ALLOWED_SIGNUP_DOMAINS` to control who may create accounts, `RESEND_API_KEY` and `RESEND_FROM_DOMAIN` to email login codes, Google login, and AssemblyAI, OpenAI or Groq keys for transcripts and AI summaries.

**After deploy:**

1. Open the Cap URL, choose Log in and enter your email address.
2. Open the Cap service's deploy logs in Railway and copy the 6-digit code from the VERIFICATION CODE block. Enter it within 10 minutes.
3. In the Cap desktop app settings, set Cap Server URL to your Cap URL and sign in.
4. Set `CAP_ALLOWED_SIGNUP_DOMAINS` to your company domain (or `closed.invalid`) before you turn on email delivery.

**This template:**

- Lets you log in without email: the login code is printed to the Cap deploy logs, which only your project members can read
- Keeps strangers out, because a code they request never reaches them. `CAP_ALLOWED_SIGNUP_DOMAINS` closes sign-up for good
- Pins the Cap web app and media server images by digest instead of the moving `latest` tag
- Stores recordings in a private Railway Bucket with presigned upload and playback links, with no separate MinIO service to run or expose
- Includes the media server on the private network with a generated webhook secret
- Runs MySQL 8.4 LTS on a volume, private, with no public TCP proxy
- Generates every secret (session, encryption and webhook keys)
- Checks health on `/api/status` and `/health`, and restarts crashed services

**Notes:** new recordings get a public share link by default; set `CAP_VIDEOS_DEFAULT_PUBLIC=false` to change that. Never change `DATABASE_ENCRYPTION_KEY` after the first deploy. For a custom domain, set `WEB_URL` and `NEXTAUTH_URL` to it. Upgrade by changing both Cap images together, and back up MySQL first. Cap is licensed under AGPL-3.0. This template is not affiliated with Cap Software, Inc.

## Why Deploy Cap 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 Cap 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) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/cap-open-source-loom
