go2rtc
go2rtc is a lightweight real-time streaming server for IP cameras, RTSP, and WebRTC. It provides low-latency video streaming, protocol conversion, and optional hardware transcoding through an easy-to-use web interface. Perfect for home automation, surveillance systems, and self-hosted camera streaming setups.
yaml
docker-compose.yml
services:
go2rtc:
image: alexxit/go2rtc
container_name: go2rtc
ports:
- "1984:1984"
- "8554:8554"
- "8555:8555"
- 8555:8555/udp
restart: unless-stopped
environment:
- TZ=Europe/London
volumes:
- ./config:/config
networks: {}
.ENV
.env example
# No environment variables detected
deployment
Quick Start
- Create a working directory named after the service.
- Copy the compose file and generated `.env` into that directory.
- Review the variables and replace placeholders with real values.
- Run `docker compose up -d`.
mkdir go2rtc
cd go2rtc
# create docker-compose.yml
# create .env
docker compose up -d