---
title: "Deploy MiroTalk"
description: "Self-hosted WebRTC video calls in the browser: rooms, screen share, chat"
category: "Other"
url: https://railway.com/deploy/mirotalk-1
---

# Deploy MiroTalk

Self-hosted WebRTC video calls in the browser: rooms, screen share, chat

**[Deploy MiroTalk on Railway](https://railway.com/template/mirotalk-1)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/mirotalk-1/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### MiroTalk https://raw.githubusercontent.com/miroslavpejic85/mirotalk/master/public/images/mirotalk-icon.png

- **Source:** https://github.com/aalfath/mirotalk-railway-template
- **Health check:** /
- **Public domain:** Yes

## Documentation

# Deploy and Host MiroTalk on Railway

MiroTalk P2P is a free, open-source (AGPL-3.0) video calling app that runs in the browser. Participants open a room link and talk over WebRTC, peer to peer, with screen sharing, chat, a whiteboard, file sharing, polls and local recording. There are no accounts to create and nothing to install.

## About Hosting MiroTalk

MiroTalk P2P is a single Node.js service. The server delivers the web app and relays WebRTC signalling over WebSockets. Audio and video go directly between browsers, or through a STUN/TURN relay when a direct path is blocked. This template builds one service from a GitHub repo that pins the official `mirotalk/p2p` image (2.2.92) by digest, gives it a public HTTPS domain and a health check, and generates the JWT, API and session secrets. Rooms live in memory, so it needs no database or volume. The image's defaults include a shared public TURN relay. For calls across strict NATs or corporate firewalls, add your own TURN server.

## Common Use Cases

* Private video meetings and one-to-one calls on your own domain, without third-party accounts
* Remote support, tutoring or interviews with screen sharing, chat and a shared whiteboard
* Embedding video rooms in your own site or app through an iframe or the REST API

## Dependencies for MiroTalk Hosting

* None beyond the MiroTalk service itself: no database or object storage
* Optional: a TURN server (for example coturn or a hosted relay) for reliable calls behind restrictive networks

### Deployment Dependencies

* MiroTalk P2P source and documentation: https://github.com/miroslavpejic85/mirotalk and https://docs.mirotalk.com/mirotalk-p2p/
* Official image: https://hub.docker.com/r/mirotalk/p2p
* Template repo (Dockerfile, changelog): https://github.com/aalfath/mirotalk-railway-template

### Implementation Details

The template sets five variables: `PORT` (3000), `HOST` (your Railway domain) and the generated secrets `JWT_KEY`, `API_KEY_SECRET` and `SESSION_SECRET`. The Dockerfile sets `NODE_ENV=production` and `TRUST_PROXY=true`, and turns off upstream's analytics script and exit survey. Anyone with the URL can open a room by default. To restrict room creation, add `HOST_PROTECTED=true` and `HOST_USERS=YOUR-USER:YOUR-PASSWORD` to the service. Add `TURN_SERVER_URL`, `TURN_SERVER_USERNAME` and `TURN_SERVER_CREDENTIAL` for your own TURN relay, or the `OIDC_*` variables for single sign-on. Every option is listed in upstream's `.env.template`. Updates to this template arrive as "update available" notices when its repo's `main` changes.

## Why Deploy MiroTalk 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 MiroTalk 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)
- [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/mirotalk-1
