feat(monitoring): Add go2rtc service for CCTV integration
Some checks failed
Deploy to Production / deploy (push) Failing after 0s
Test / backend-test (push) Failing after 0s
Test / frontend-test (push) Failing after 0s

- Added go2rtc service to docker-compose.yml
- Configured Traefik routing at /monitor
- Created go2rtc.yaml with demo stream configuration
This commit is contained in:
fullsizemalt 2025-12-11 12:56:50 -08:00
parent 1ef3dc0d80
commit 225bf3608e
2 changed files with 39 additions and 0 deletions

View file

@ -62,6 +62,22 @@ services:
dockerfile: Dockerfile
environment:
- VITE_API_URL=/api
go2rtc:
image: alexxit/go2rtc:latest
restart: unless-stopped
networks:
- internal
- traefik-public
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-public"
- "traefik.http.routers.wolfpack-go2rtc.rule=Host(`777wolfpack.runfoo.run`) && PathPrefix(`/monitor`)"
- "traefik.http.routers.wolfpack-go2rtc.entrypoints=websecure"
- "traefik.http.routers.wolfpack-go2rtc.tls.certresolver=letsencrypt"
- "traefik.http.services.wolfpack-go2rtc.loadbalancer.server.port=1984"
volumes:
- ./go2rtc.yaml:/config/go2rtc.yaml
labels:
- "traefik.enable=true"
- "traefik.docker.network=traefik-public"

23
go2rtc.yaml Normal file
View file

@ -0,0 +1,23 @@
streams:
# Examples of streams. Replace with real RTSP URLs from local NVR or Cameras
# Format: rtsp://username:password@ip:port/stream_path
# Demo Stream (Big Buck Bunny) for testing
demo:
- ffmpeg:https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4#video=h264#audio=aac
api:
listen: ":1984"
base_path: "/monitor"
rtsp:
listen: ":8554"
srtp:
listen: ":8443"
webrtc:
listen: ":8555"
candidates:
- 777wolfpack.runfoo.run:8555
- stun:stun.l.google.com:19302