
Image: The Frigate web UI, from the official Frigate documentation (docs.frigate.video, MIT-licensed project).
Frigate 0.18: Deploy a Local AI NVR with Docker Compose — No YAML Required
Evidence: RESEARCH_ONLY — NOT LAB TESTED. This guide is based on primary sources read directly on 2026-11-27: the official Frigate 0.18.0 release notes, the installation and getting-started documentation, the camera, detector and profiles documentation, and the MIT licence file. The deployment steps below were not run in a lab, and no performance figures in this article come from hands-on testing. Anything described as a docs figure is labelled as such.
The short version
Frigate 0.18 turns a home server and a handful of IP cameras into a local AI NVR: object detection runs on your own hardware, video stays on your own disk, and — since the 0.18.0 feature release (September 2026, per release trackers) — the whole setup is configured in the web UI instead of a YAML file. This guide deploys it with Docker Compose, pinned to the current release, 0.18.3, adds a camera through the Add Camera Wizard, and walks through detection, Profiles, and the optional GenAI chat. If your last Frigate guide was written before September 2026, it no longer matches: YAML-only configuration is gone as the default path (though manual YAML is still fully supported).
The decision: if you want camera AI that runs locally, deploy Frigate 0.18.3 with Docker Compose on a bare-metal Debian-based host, start with the default OpenVINO detector on CPU, and configure everything in the Settings UI. Add a Coral, Hailo, or GPU detector later only if the CPU cannot keep up — and only after checking the detector list in this guide, because two detectors cannot be mixed for object detection.
What changed in 0.18.0
| Change in 0.18.0 | What it means for you |
|---|---|
| Full UI Configuration | Every setting — cameras, detectors, motion, recording, GenAI, zones — is editable in a categorized Settings sidebar, with per-field validation and global-vs-camera overrides. Most options apply dynamically, without a restart. |
| Profiles | Named overrides on top of the base camera config (for example Home/Away), switchable at runtime with no restart and persisted across restarts. Only one profile is active at a time. |
| GenAI expansion | Multi-provider GenAI with a roles field, a new local llama.cpp provider, Remote Embeddings, VLM monitoring, and a Chat interface — a tool-calling LLM agent inside the Frigate UI. |
| Motion Search and Motion Review | Draw a region and find the time periods where motion happened there, with motion preview clips and a heatmap-grid filter. |
| Debug Replay | Replay recorded video through the detection and motion pipelines as if it were live, to tune motion settings against real footage. |
| Case-based Exports | Exports are organized into named cases, with fast multi-camera export from History and a custom export API. |
| Breaking: snapshots on disk | No more annotated JPEG snapshots on disk — only clean, unannotated WebP files (<camera>-<id>-clean.webp). Annotated images are still available through the /api/events/<id>/snapshot.jpg endpoint. |
| Breaking: detectors | The DeGirum detector was removed (the company ceased operations on 1 August 2026). DeepStack is deprecated and will be removed in 0.19. |
| Breaking: FFmpeg 8 | FFmpeg was updated to version 8. Intel GPU statistics now read kernel DRM counters and need a host kernel of 6.5 or newer. |
The 0.18.0 release notes also record automatic config migration for the changed formats (GenAI config, zones and masks), but back up your config and frigate.db before any upgrade anyway.
Before you start
Host. Frigate runs best with Docker on a bare-metal Debian-based Linux host, where it can reach accelerator hardware with low overhead. Virtual machines are not recommended (some Proxmox setups work), Windows is not officially supported, and Proxmox LXC is explicitly not officially supported. Frigate publishes no minimum host RAM or CPU figure, so this guide states none — size the host by the documented guidance instead: the shared-memory calculator below, and the detector options in the detector section.
Image tag. Docker Compose is the recommended install method, and the official image is ghcr.io/blakeblackshear/frigate. Pin the tag to 0.18.3 rather than floating on stable, so a later pull cannot silently change the version under a running config. Pick the tag for your hardware:
| Hardware | Image tag |
|---|---|
| Default (amd64 or arm64, including Hailo) | 0.18.3 (current stable release) |
| Nvidia GPU | 0.18.3-tensorrt |
| AMD GPU | 0.18.3-rocm |
| Rockchip SBC | 0.18.3-rk (community) |
| Jetson (JetPack 6) | 0.18.3-tensorrt-jp6 (community) |
| Synaptics SL1680 | 0.18.3-synaptics (community) |
The stable image covers both amd64 and arm64. Frigate is MIT-licensed, so there is no licence cost to self-hosting it.
Ports to know. The UI and API live on 8971 (authenticated; the getting-started guide uses https://<server_ip>:8971 — this is the port a reverse proxy should use). Port 5000 is an internal, unauthenticated UI/API port: do not expose it. Port 8554 is the RTSP restream, unauthenticated by default, and 8555 is WebRTC for two-way talk. Port 1984 is the go2rtc web UI. Keep Frigate on your LAN or behind a VPN, or behind a reverse proxy on 8971 — do not put the unauthenticated ports on the internet.
Step 1 — The Compose file
Create a project directory with config/ and storage/ subdirectories, then write docker-compose.yml:
services:
frigate:
container_name: frigate
image: ghcr.io/blakeblackshear/frigate:0.18.3
restart: unless-stopped
stop_grace_period: 30s
shm_size: "512mb"
volumes:
- /etc/localtime:/etc/localtime:ro
- ./config:/config
- ./storage:/media/frigate
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "8971:8971"
- "8554:8554"
- "8555:8555"
environment:
- TZ=Asia/Bangkok
# Uncomment and adjust for hardware acceleration, e.g. Intel/AMD GPU:
# devices:
# - /dev/dri/renderD128:/dev/dri/renderD128
A few notes on that file, all from the official docs:
- Shared memory matters. Docker’s default shm is 64 MB, which is too small — Frigate needs about 210 MB for two cameras detecting at 720p, and an undersized shm shows up as a “Bus error” on exit. The 512 MB in the example comes from the docs’ generator; use the docs’ SHM calculator (based on your detect-stream resolution) to size it for your camera count, and leave room for cameras you plan to add. Do not remap
/dev/shm— Frigate uses it for raw decoded frames. - Storage paths.
/configholds the config file and the SQLite database;/media/frigateholds clips, recordings, and exports;/tmp/cacheshould be a tmpfs of about 1 GB. - Privileges. The docs’ full generator example includes
privileged: truewith the note that it “may not be necessary for all setups”. Prefer least-privilege device mappings (like the commented/dev/driline above) once the setup works, rather than running the container privileged. - Runs as root by default. The Compose file has no
user:directive (same as the official starter), so the container runs as root and files it creates in the bind mounts are owned by root on the host. - Large camera counts can exceed Docker’s default process and file limits (
RuntimeError: can't start new thread,OSError: [Errno 24] Too many open files). If you hit those, raisepids_limitandulimits.nofile(65535) in Compose. - MQTT is optional. You only need an MQTT broker for the Home Assistant integration, and Frigate and Home Assistant must share the same broker.
Step 2 — First boot
docker compose up -d
docker logs frigate
On first startup Frigate creates an admin user and prints the generated password in the container logs — read it from docker logs frigate. If no config file exists, Frigate creates one automatically. Then open https://<server_ip>:8971 and log in as admin. After your first login, change the admin password in Settings → Users — the docs recommend setting a new password after first login — and do not retain the log output containing the generated password. All further configuration happens in the Settings UI.
Verify the container is healthy before going further: docker compose ps should show Frigate up, and the UI should load over HTTPS on port 8971.
Step 3 — Add a camera with the wizard
The Add Camera Wizard is the recommended way to add a camera, and a standard setup needs no hand-written YAML at all. Go to Settings → Global configuration → Camera management → Add Camera. The wizard probes the camera via ONVIF (usually port 80 or 8080), or you can pick a brand template (Dahua/Amcrest/EmpireTech, Hikvision/Uniview/Annke, Ubiquiti, Reolink, Axis, TP-Link, Foscam) or enter a custom RTSP URL. It tests the streams — resolution, frame rate, codecs, snapshot — validates common misconfigurations, and writes the config. Saving starts the camera immediately, with no restart.
Assign stream roles deliberately. Each camera input has one role:
| Role | Purpose |
|---|---|
detect | The feed object detection runs on |
record | The feed whose segments are saved to disk |
audio | Audio-based detection |
The recommended split is a low-resolution substream for detect and the high-resolution main stream for record — detection does not need full resolution, and the SHM sizing above is based on the detect stream, not the record stream. A single input with no role automatically gets detect. The “Reduce connections to camera” option routes inputs through the go2rtc restream so Frigate and the live view share one camera connection. The wizard warns if the detect resolution is too high or too low.
Step 4 — Hardware acceleration and the detector
Hardware acceleration (ffmpeg decode) is set in Settings → Global configuration → FFmpeg, using presets such as VAAPI for Intel/AMD GPUs — but only after passing the device into the container (for example /dev/dri/renderD128, as in the Compose file above). Rockchip setups need the -rk image and specific device mappings; Hailo needs /dev/hailo0 plus the host driver installed.
The detector defaults to a single OpenVINO detector running on the CPU, which works out of the box with no extra hardware. That is the right starting point for most home servers. The supported detectors in 0.18 are:
- Coral EdgeTPU (USB, Mini-PCIe, or M.2) — the classic Frigate accelerator
- Hailo-8/8L — the default YOLOv6n model is downloaded from the Hailo Model Zoo on first start, cached under
/config/model_cache/hailo, and then runs fully offline - OpenVINO — Intel Arc/iGPU/CPU/NPU, and unofficially AMD CPUs
- ONNX — auto-detected per image (ROCm image for AMD GPUs,
-tensorrtimage for Nvidia) - TensorRT (Jetson), RKNN (Rockchip NPU), Synaptics SL1680, AXERA (new in 0.18.0), MemryX MX3, XDNA2 (AMD Ryzen AI NPU), Apple Silicon (M1 and newer, via IPC proxy), and a plain CPU detector (not recommended for actual use — OpenVINO CPU mode is better)
Two rules from the docs: detectors cannot be mixed for object detection — for example, OpenVINO plus Coral together for detection is not allowed, though different hardware may still accelerate other tasks such as semantic search. And on model size, 320×320 is the recommended starting point: Frigate crops motion regions and zooms before detection, so 320×320 is better at small or distant objects, not worse. 640×640 is slower and mainly useful when many objects are spread across a large area. As a docs reference point, Coral targets around 10 ms inference, while a GPU running concurrent instances can keep up at around 30 ms. Monitor inference speed on System → Metrics → Cameras once cameras are running.
Step 5 — Tune detection in the UI
With cameras streaming, the tuning is all point-and-click:
- Motion masks and zones: draw polygon motion masks in Settings → Camera configuration → Masks/Zones, using the Debug view. Note the docs’ caveat: motion masks only prevent motion from initiating detection — they do not stop tracked objects or alerts in masked areas.
- Recording: enable it in Settings → Global/Camera configuration → Recording. The default retention for tracked-object video is 10 days.
- Snapshots: remember that 0.18.0 stores clean WebP snapshots on disk only — if an automation or script expected annotated JPEGs, it needs the snapshot API endpoint instead.
- Debug Replay: if motion tuning misfires, replay recorded video through the detection and motion pipelines as if it were live, and adjust against real footage rather than guessing.
- Motion Search: draw a region on the review page and find the periods where motion occurred there.
Deleting a camera is admin-only and irreversible: it removes recordings, tracked objects, and config (exports are kept by default).
Step 6 — Profiles: Home and Away without touching YAML
Profiles are named overrides on top of the base camera config, and they are the feature that most changes day-to-day use. Create them in Settings → Global configuration → Profiles. A profile can override detection, motion, recording, snapshots, review, zones, notifications, objects (including masks and filters), enrichments such as face recognition and LPR, audio, birdseye, and whether a camera is enabled at all.
The canonical example is Home/Away: an “Away” profile with full detection and recording on every camera, and a “Home” profile that disables the indoor cameras (or their detection) while keeping the outdoor ones armed. Switching profiles happens at runtime with no restart, the active profile persists across restarts, and only one profile is active at a time. Switch from the UI, over MQTT (frigate/profile/set), through the HTTP API, or from Home Assistant. There is no built-in scheduler — if you want time-based switching, drive it from Home Assistant, Node-RED, or cron.
Step 7 — Optional: GenAI and Chat
GenAI is optional — object detection works without it. In 0.18.0 the genai configuration became a mapping of provider setups with a roles field that assigns providers to tasks: object descriptions, review summaries, embeddings, chat, and VLM monitoring. Existing configs are auto-migrated, and GenAI config updates apply dynamically without a restart.
Providers available in 0.18:
| Provider | Notes |
|---|---|
| llama.cpp (new in 0.18.0) | Local, with automatic model probing and context sizing |
| Ollama | Self-hosted; needs a vision model (for example llava:7b). The docs give ≥ 8 GB RAM/VRAM for a 7B model, 16 GB for 13B, 32 GB for 33B — and CPU is not recommended |
| Google Gemini | Free tier allows 15 queries per minute |
| OpenAI | Including OpenAI-compatible endpoints via OPENAI_BASE_URL |
| Azure OpenAI | Cloud-hosted |
Only llama.cpp and Ollama are local: Gemini, OpenAI, and Azure send thumbnails to a cloud provider, so do not present GenAI as fully local by default. Put API keys in environment variables ({FRIGATE_<PROVIDER>_API_KEY}) — never paste secrets into a config file you might share or commit.
The new Chat interface is a tool-calling LLM agent in the Frigate UI. It can search tracked objects, run semantic similarity search, pull live camera context, toggle camera features, start VLM monitoring, and recap recent activity, with streaming markdown replies, tool calls shown inline, and object thumbnails as cards. A good first test is to ask it about a camera’s recent activity. Treat Chat as privileged: it can toggle camera features and start VLM monitoring, so give UI access only to people you trust — non-admin users should get viewer accounts, which are read-only — and keep the UI on port 8971 behind your LAN, VPN, or reverse proxy. The 0.18.3 notes record ownership checks for chat camera-watch actions (PR #24776), but that does not make every chat action admin-only; never expose port 5000, which grants admin-level access without authentication. Remote Embeddings let semantic-search embeddings come from an external GenAI provider instead of running locally, and VLM monitoring loops a configured GenAI provider against a camera’s live view.
Frigate+ — the optional model-training service — is not required; the default models work without it.
Verify it works
- Open the live view: cameras stream, and tracked objects get bounding boxes and labels.
- Check System → Metrics → Cameras for inference speed per camera.
- Open the Review page: tracked objects should appear as review items, with motion preview clips.
- Create a test Profile, switch to it, and confirm the camera behaviour changes (for example an indoor camera stops detecting) — then switch back.
- If you enabled GenAI, ask Chat about a camera’s recent activity and confirm it answers from Frigate’s own data.
Safety notes before you expose anything
- Port 5000 is unauthenticated. Do not expose it, and limit access to it on your network.
- Port 8554 (RTSP restream) is unauthenticated by default. Enable go2rtc authentication if it is ever reachable beyond your LAN.
- Keep Frigate behind your LAN, a VPN, or a reverse proxy on 8971. If you already run a reverse proxy, the Nginx-based setup in our NginxPulse guide is a useful reference for the proxy side — Frigate itself only needs 8971 exposed to the proxy.
- Back up
/config(which containsfrigate.db) before any upgrade — and/media/frigatetoo if recordings and exports matter to you. The 0.18.0 migrator handles the changed formats. To roll back:docker compose down, restore/configfrom backup, re-pin the previous image tag in the Compose file, thendocker compose up -d. - Prefer least-privilege device mappings over
privileged: truein the Compose file. - Do not mix detectors for object detection, and do not assume a detector that worked in 0.17 still exists — DeGirum is gone in 0.18 and DeepStack follows in 0.19.
What this guide does not cover
- Hardware sizing beyond the docs. Frigate publishes no minimum host RAM or CPU, so no such figure appears here. Size shared memory with the docs’ calculator and pick a detector from the list above.
- Home Assistant integration. It needs MQTT shared between Frigate and Home Assistant, and Frigate is also available as a Home Assistant App — with its own limitations (no AMD GPU, no Intel NPU, no Nvidia GPU in Apps).
- Upgrading from 0.17. The 0.18.0 release notes describe automatic migration, but this guide is a fresh deployment, not an upgrade walkthrough — back up first if you are migrating.
- Exact release dates. The 0.18.0 (12 September 2026) and 0.18.3 (19 November 2026) dates come from a release tracker; the GitHub releases pages confirm both releases and their changelog contents but their text crawls expose no publication dates.
The bottom line
Frigate 0.18 is the release where the NVR stops being a YAML project and becomes a UI product: deploy the pinned 0.18.3 image with Docker Compose, add cameras through the wizard, let the default OpenVINO detector run on CPU, and do the rest — masks, zones, recording, Home/Away Profiles, GenAI chat — in Settings. The deployment takes an evening; the tuning is where the value is.
If you run other self-hosted services on the same box, the same Compose-first pattern applies: our Dokploy guide covers a self-hosted PaaS on Docker, GPUStack covers sharing local GPUs between AI workloads, and Kiri covers a Rust container runtime as a Docker Desktop alternative. For the AI side, llama.cpp is the same local runtime Frigate’s new GenAI provider uses, LiteLLM is a gateway if you front several models, and n8n can drive profile switching and notifications from Frigate’s MQTT events.
Sources
- Frigate 0.18.0 release notes — github.com/blakeblackshear/frigate/releases/tag/v0.18.0
- Frigate releases (0.18.3 current) — github.com/blakeblackshear/frigate/releases
- Installation — docs.frigate.video/frigate/installation
- Getting started — docs.frigate.video/guides/getting_started
- Camera configuration — docs.frigate.video/configuration/cameras
- Object detectors — docs.frigate.video/configuration/object_detectors
- Profiles — docs.frigate.video/configuration/profiles
- Licence (MIT) — github.com/blakeblackshear/frigate/blob/dev/LICENSE
All sources accessed 2026-11-27. Frigate is an MIT-licensed open-source project by Frigate, Inc. (blakeblackshear/frigate).
Bình luận
Bình luận được duyệt trước khi hiển thị.Đang tải bình luận…
Để lại bình luận