# Self-host go2rtc

> A camera streaming hub that turns RTSP, HomeKit and other sources into WebRTC, HLS and MJPEG.

- Page: https://levelrail.com/templates/go2rtc/
- JSON: https://levelrail.com/templates/go2rtc.json
- Category: Applications
- Licence: MIT (Permissive license)
- Source: https://github.com/AlexxIT/go2rtc
- Upstream docs: https://github.com/AlexxIT/go2rtc

## Requirements
- Memory: about 128 MiB
- amd64: unknown, arm64: unknown
- Needs configuration before start: no
- Pinned image tag: 1.9.15

## Services

| Service | Image | Tag | Ports | Volumes |
| --- | --- | --- | --- | --- |
| go2rtc | alexxit/go2rtc | 1.9.15 | 1984 | config -> /config |

## Deploy

### CLI

```bash
levelrail-cli templates deploy go2rtc --name my-go2rtc
```

### API

```bash
curl -X POST -H "Authorization: Bearer $TOKEN" \
  https://levelrail.example.com/api/v1/service-templates/go2rtc/deploy
```

Create a token in the dashboard first. This one-click route deploys it as a trial app you can keep or remove.

## First run
1. Open the web UI and add stream sources, or edit the config file in the config volume.

## Questions

### Can I deploy go2rtc on Dokploy or Dokku?

The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list has an entry with the id go2rtc for this app, so check that entry as well. Dokku deploys container images with its own commands, so the pinned image alexxit/go2rtc:1.9.15 is what you deploy there.

Self-host go2rtc, go2rtc docker compose file, deploy go2rtc on a VPS: this page lists the pinned image, ports, volumes and the commands for each.
