Files
go2rtc/docker
Aram Akhavan 9d1e4b11d7 Add EXPOSE to Dockerfile (#2010)
* Expose ports 1984 and 8554 in Dockerfile

* Update Dockerfile

* Update hardware.Dockerfile

* Expose additional ports in Rockchip Dockerfile

* Move docker expose ports to single line

---------

Co-authored-by: Alex X <alexey.khit@gmail.com>
2026-01-17 19:14:07 +03:00
..
2026-01-17 19:14:07 +03:00
2025-03-22 19:16:00 +03:00

Versions

  • alexxit/go2rtc:latest - latest release based on alpine (amd64, 386, arm/v6, arm/v7, arm64) with support hardware transcoding for Intel iGPU and Raspberry
  • alexxit/go2rtc:latest-hardware - latest release based on debian 13 (amd64) with support hardware transcoding for Intel iGPU, AMD GPU and NVidia GPU
  • alexxit/go2rtc:latest-rockchip - latest release based on debian 12 (arm64) with support hardware transcoding for Rockchip RK35xx
  • alexxit/go2rtc:master - latest unstable version based on alpine
  • alexxit/go2rtc:master-hardware - latest unstable version based on debian 13 (amd64)
  • alexxit/go2rtc:master-rockchip - latest unstable version based on debian 12 (arm64)

Docker compose

services:
  go2rtc:
    image: alexxit/go2rtc
    network_mode: host       # important for WebRTC, HomeKit, UDP cameras
    privileged: true         # only for FFmpeg hardware transcoding
    restart: unless-stopped  # autorestart on fail or config change from WebUI
    environment:
      - TZ=Atlantic/Bermuda  # timezone in logs
    volumes:
      - "~/go2rtc:/config"   # folder for go2rtc.yaml file (edit from WebUI)

Basic Deployment

docker run -d \
  --name go2rtc \
  --network host \
  --privileged \
  --restart unless-stopped \
  -e TZ=Atlantic/Bermuda \
  -v ~/go2rtc:/config \
  alexxit/go2rtc

Deployment with GPU Acceleration

docker run -d \
  --name go2rtc \
  --network host \
  --privileged \
  --restart unless-stopped \
  -e TZ=Atlantic/Bermuda \
  --gpus all \
  -v ~/go2rtc:/config \
  alexxit/go2rtc:latest-hardware