Skip to main content

Frigate

Frigate is an open-source video surveillance system designed for real-time object detection. It’s commonly used for managing home security cameras. With the help of machine learning models (like YOLO), Frigate can detect and recognize moving objects from camera footage — such as people, vehicles, and more.

Frigate supports hardware acceleration using GPU or Google Coral TPU, which makes video processing faster. It also integrates well with Home Assistant, offering features like recording, motion detection, and alerts — making it a great fit for smart home security.

Docker Compose Setup

Here's the content of the docker-compose.yml file for Frigate:

version: '3'

services:
frigatev26:
image: harbor.spacemit.com/application/frigate:v26
container_name: frigatev26
restart: unless-stopped
tmpfs:
- /tmp/cache:rw,exec,size=1000000000
devices:
- /dev/dri/renderD128
- /dev/tcm
- /dev/udma
- /dev/udmabuf
- /dev/video0

shm_size: 64m
volumes:
- /root/workspace/frigate/storage:/media/frigate
- /root/workspace/frigate/config:/config
- /etc/localtime:/etc/localtime:ro
environment:
- FRIGATE_RTSP_PASSWORD=password
ports:
- "5000:5000"
- "8554:8554"
- "8555:8555/udp"

Configuration Instructions

To configure Frigate, you’ll need to log in to your NAS system using a serial port or SSH.

  1. Go to the directory: /root/workspace/frigate/config/

  2. Download the configuration files from this link: Baidu Cloud Access code (password): pc9w

  3. Download the frigate-config.tar file and extract it into the config directory.

    After extracting, the folder should look like this:

docker6

  1. Restart the Frigate service.

  2. Wait for around 30 seconds, then open your browser and visit: http://HOST_IP:5000 (Replace HOST_IP with the IP address of your NAS)

To know more about frigate, please visit the frigate official page.