Archy54

Untitled

Mar 20th, 2025
16
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.04 KB | None | 0 0
  1. version: "3.9"
  2. services:
  3.   frigate:
  4.     image: ghcr.io/blakeblackshear/frigate:0.15.0-rc2
  5.     container_name: frigate
  6.     restart: unless-stopped
  7.     privileged: true  # Required for hardware access
  8.     network_mode: host  # Recommended for hardware and RTSP access
  9.     shm_size: "400mb"  # Shared memory for FFmpeg, adjust as needed
  10.     volumes:
  11.      - /opt/frigate/config:/config/  # Configuration file
  12.       - /mnt/frigate_cctv_hdd:/media/frigate #HDD Recordings
  13.       - type: tmpfs  # Optional: Use RAM for cache to reduce SSD wear
  14.         target: /tmp/cache
  15.         tmpfs:
  16.           size: 1000000000  # Adjust size as needed
  17.       - /etc/localtime:/etc/localtime:ro  # Sync container time with host
  18.       - /dev/shm:/dev/shm  # Shared memory for FFmpeg
  19.     devices:
  20.      - /dev/dri:/dev/dri  # Intel iGPU for hardware acceleration
  21.       - /dev/bus/usb:/dev/bus/usb  # USB Coral TPU
  22.     ports:
  23.      - "5000:5000"  # Frigate Web UI
  24.       - "1935:1935"  # RTMP stream
  25.       - "8554:8554"  # RTSP restream
  26.       - "8555:8555"  # WebRTC
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment