Back to all templates
go2rtc logo

go2rtc

Infrastructure256MB+ RAM

Ultimate camera streaming application with support for RTSP, WebRTC, HomeKit, FFmpeg, and RTMP

infrastructurenetworkinggo2rtcopen-sourceself-hosteddocker

Deploy go2rtc in 3 Steps

1

Connect Your VPS

Add your server credentials to Server Compass

2

Select go2rtc

Choose from our template library

3

Deploy & Configure

Fill in settings and click Deploy

No Docker knowledge required
Step-by-step deployment guide

Deploy go2rtc on a VPS with Server Compass

Use the go2rtc template in Server Compass to deploy a self-hosted camera stream gateway on your VPS, then verify the web UI loads.

About 10 minutesBrowser verified
1
Step 1

Open the server Apps tab

Select the tutorial-vps VPS, open the Apps tab, and start a new app deployment. Keep sensitive server details hidden before capturing or sharing screenshots.

Server Compass Apps tab before creating a go2rtc app
2
Step 2

Choose an app template

Click New App and choose the template deployment path so Server Compass can load the built-in catalog.

Choosing to deploy an app from a Server Compass template
3
Step 3

Search for go2rtc

Use the template picker search to find go2rtc in the Server Compass template catalog.

Searching for go2rtc in the Server Compass template picker
4
Step 4

Select the go2rtc template

Choose the go2rtc template. Server Compass fills the stream gateway service, persistent config volume, and public web port.

go2rtc template selected in Server Compass
5
Step 5

Review the go2rtc settings

Confirm the app name and compose service. In this run, the app was named go2rtc-demo and used host port 4198.

Reviewing go2rtc project settings and compose service
6
Step 6

Deploy go2rtc

Review the generated compose settings, confirm the go2rtc web port is available, and click Deploy.

Reviewing go2rtc web port before deployment
7
Step 7

Watch the deployment progress

Keep the deployment modal open while Server Compass uploads the compose file, pulls the go2rtc image, starts the container, and verifies the stack.

Server Compass deploying the go2rtc template on the VPS
8
Step 8

Confirm go2rtc is running

After deployment finishes, return to the Apps tab and confirm the go2rtc app is marked Running with its application URL available.

go2rtc template running in the Server Compass Apps tab
9
Step 9

Open go2rtc in the browser

Open the application URL in a browser. The go2rtc web UI confirms the stream gateway is reachable.

The deployed go2rtc web UI loaded in a browser

After go2rtc Opens

  • Place go2rtc behind HTTPS and authentication before exposing camera controls publicly.
  • Store camera credentials securely because they live in the go2rtc config volume.
  • Use a harmless test stream before adding real cameras.
  • Plan firewall/NAT behavior before enabling WebRTC for remote clients.
  • Use host networking only when you need LAN discovery features such as HomeKit or mDNS.
  • Back up the go2rtc config volume after adding streams.
  • Keep the go2rtc image updated for streaming and dependency fixes.

Verified Result

The go2rtc dashboard loaded successfully from the deployed container.

go2rtc deployment questions

What does the go2rtc template deploy?

It deploys go2rtc as a single-container RTSP/WebRTC/HLS camera stream gateway with persistent configuration.

Which port did the tutorial use?

The tutorial used host port 4198, which maps to the go2rtc web UI on container port 1984.

Does go2rtc need setup after deployment?

Open the web UI, add a harmless test stream or camera URL, and copy the generated WebRTC, HLS, or RTSP endpoint for downstream tools.

Should this become a blog post?

No. The deployment guide should live on the go2rtc template detail page and be linked from the reusable template deployment docs page.

After Deployment

After deploying go2rtc with Server Compass, complete these steps to finish setup

1

Open the web UI at http://YOUR_SERVER_IP:{{PORT}} and add your first camera (RTSP URL, ONVIF, USB device, etc.)

2

Preview the stream to confirm it works, then copy the canonical `rtsp://` or WebRTC URL for downstream tools

3

Edit `/config/go2rtc.yaml` (inside the container or via the UI) to enable modules like HomeKit, MQTT, or WebRTC ICE servers

4

Configure a reverse proxy with HTTP basic auth or OAuth before exposing the UI to the internet

Need help? Check out our documentation for detailed guides.

go2rtc FAQ

Common questions about self-hosting go2rtc

How do I deploy go2rtc with Server Compass?

Simply download Server Compass, connect to your VPS, and select go2rtc from the templates list. Fill in the required configuration and click Deploy. The entire process takes under 3 minutes.

What are the system requirements for go2rtc?

go2rtc requires a minimum of 256MB RAM. We recommend a VPS with at least 1024MB RAM for optimal performance. Any modern Linux server with Docker support will work.

Can I migrate my existing go2rtc data?

Yes! Server Compass provides volume mapping that allows you to import existing data. You can also use standard go2rtc backup and restore procedures.

How do I update go2rtc to the latest version?

Server Compass makes updates easy. Simply click the Update button in your deployment dashboard, and the latest go2rtc image will be pulled and deployed with zero downtime.

Is go2rtc free to self-host?

go2rtc is open-source software. You only pay for your VPS hosting (typically $5-20/month) and optionally Server Compass ($29 one-time). No subscription fees or per-seat pricing.

Ready to Self-Host go2rtc?

Download Server Compass and deploy go2rtc to your VPS in under 3 minutes. No Docker expertise required.

Download Server Compass