CCCPaste

composefile


version: "3.9"
services:
  frigate:
    privileged: true
    container_name: frigate
    restart: unless-stopped
    stop_grace_period: 30s
    image: ghcr.io/blakeblackshear/frigate:stable
    shm_size: "4g"   # 6x 4K/5MP streams (~512MB each) rounded up
    devices:
      - /dev/dri:/dev/dri   # Intel GPU passthrough for VAAPI
    volumes:
      - ./config:/config
      - ./storage:/media/frigate
      - type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - "8971:8971"
      - "8554:8554" # RTSP feeds