feat(monitoring): Add go2rtc service for CCTV integration
- Added go2rtc service to docker-compose.yml - Configured Traefik routing at /monitor - Created go2rtc.yaml with demo stream configuration
This commit is contained in:
parent
1ef3dc0d80
commit
225bf3608e
2 changed files with 39 additions and 0 deletions
|
|
@ -62,6 +62,22 @@ services:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
environment:
|
environment:
|
||||||
- VITE_API_URL=/api
|
- 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:
|
labels:
|
||||||
- "traefik.enable=true"
|
- "traefik.enable=true"
|
||||||
- "traefik.docker.network=traefik-public"
|
- "traefik.docker.network=traefik-public"
|
||||||
|
|
|
||||||
23
go2rtc.yaml
Normal file
23
go2rtc.yaml
Normal 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
|
||||||
Loading…
Add table
Reference in a new issue