Frigate logo

Frigate

Local NVR with realtime AI object detection for IP cameras

Alternative to: ring, nest, wyze

Frigate screenshot

Frigate is a complete, locally-running network video recorder that performs realtime AI object detection on IP camera streams without sending any footage to the cloud. It records and retains video based on detected objects, re-streams cameras over RTSP to cut down on connections to the source, and offers a low-latency live view over WebRTC and MSE. Frigate integrates tightly with Home Assistant over MQTT for automations and notifications.

Frigate Docker Compose example

Self-host Frigate on your own server, homelab, or VPS starting from this Docker Compose example. It runs Frigate in Docker containers using the official ghcr.io/blakeblackshear/frigate:stable image, with persistent volumes and automatic restarts preconfigured. Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.

services:
  frigate:
    image: ghcr.io/blakeblackshear/frigate:stable
    restart: unless-stopped
    stop_grace_period: 30s
    # Shared memory for camera frames. Increase if you add many/high-resolution cameras.
    shm_size: "512mb"
    volumes:
      - config:/config
      - media:/media/frigate
      - type: tmpfs
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    environment:
      # Password protecting Frigate's internal RTSP restream. Change before exposing publicly.
      FRIGATE_RTSP_PASSWORD: "password"

volumes:
  config:
  media:

Prefer a managed setup? WinterFlow installs, configures, and updates Frigate for you using this same Docker Compose configuration.