Deploy MiroTalk

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

Deploy MiroTalk

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

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.


Template Content

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
Letta Code Remote
Run a Letta Code agent 24/7. No inbound ports, just deploy.

Letta
52