2021-02-17 07:16:39 -06:00
|
|
|
services:
|
2022-11-20 10:34:12 -03:00
|
|
|
devcontainer:
|
|
|
|
|
container_name: frigate-devcontainer
|
2025-03-26 07:24:30 -04:00
|
|
|
# Check host system's actual render/video/plugdev group IDs with 'getent group render', 'getent group video', and 'getent group plugdev'
|
|
|
|
|
# Must add these exact IDs in container's group_add section or OpenVINO GPU acceleration will fail
|
2022-02-22 07:12:11 -06:00
|
|
|
group_add:
|
2022-04-12 14:20:28 +02:00
|
|
|
- "109" # render
|
2022-07-19 06:44:11 -05:00
|
|
|
- "110" # render
|
2022-04-12 14:20:28 +02:00
|
|
|
- "44" # video
|
|
|
|
|
- "46" # plugdev
|
2021-06-09 07:41:30 -05:00
|
|
|
shm_size: "256mb"
|
2021-02-17 07:16:39 -06:00
|
|
|
build:
|
|
|
|
|
context: .
|
2023-07-23 15:45:29 -06:00
|
|
|
dockerfile: docker/main/Dockerfile
|
2022-12-30 11:53:17 -05:00
|
|
|
# Use target devcontainer-trt for TensorRT dev
|
2022-11-20 10:34:12 -03:00
|
|
|
target: devcontainer
|
2026-04-15 08:37:23 -06:00
|
|
|
cache_from:
|
|
|
|
|
- ghcr.io/blakeblackshear/frigate:cache-amd64
|
2023-11-18 14:04:43 +00:00
|
|
|
## Uncomment this block for nvidia gpu support
|
|
|
|
|
# deploy:
|
|
|
|
|
# resources:
|
|
|
|
|
# reservations:
|
|
|
|
|
# devices:
|
|
|
|
|
# - driver: nvidia
|
|
|
|
|
# count: 1
|
|
|
|
|
# capabilities: [gpu]
|
2023-07-26 06:50:41 -04:00
|
|
|
environment:
|
2024-11-08 06:37:18 -07:00
|
|
|
YOLO_MODELS: ""
|
2025-03-24 17:56:27 +00:00
|
|
|
# devices:
|
|
|
|
|
# - /dev/bus/usb:/dev/bus/usb # Uncomment for Google Coral USB
|
2022-11-20 10:34:12 -03:00
|
|
|
# - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware
|
2021-02-17 07:16:39 -06:00
|
|
|
volumes:
|
2022-11-20 10:34:12 -03:00
|
|
|
- .:/workspace/frigate:cached
|
|
|
|
|
- ./web/dist:/opt/frigate/web:cached
|
2021-02-17 07:16:39 -06:00
|
|
|
- /etc/localtime:/etc/localtime:ro
|
2023-04-23 13:35:40 -03:00
|
|
|
- ./config:/config
|
2021-02-17 07:16:39 -06:00
|
|
|
- ./debug:/media/frigate
|
2025-03-24 17:56:27 +00:00
|
|
|
# - /dev/bus/usb:/dev/bus/usb # Uncomment for Google Coral USB
|
2021-02-17 07:16:39 -06:00
|
|
|
mqtt:
|
|
|
|
|
container_name: mqtt
|
2025-03-27 16:33:49 +00:00
|
|
|
image: eclipse-mosquitto:2.0
|
|
|
|
|
command: mosquitto -c /mosquitto-no-auth.conf # enable no-auth mode
|
2021-02-17 07:16:39 -06:00
|
|
|
ports:
|
2025-03-26 07:24:30 -04:00
|
|
|
- "1883:1883"
|