I did get it up and running with the following docker compose stack. I didn't have the hardware accel correct at first and do not have coral yet.
Code
version: "3.9"
services:
frigate:
container_name: Frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: blakeblackshear/frigate:stable
# (width * height * 1.5 * 9 + 270480)/1048576 = <shm size in mb>
shm_size: "128mb" # update for your cameras based on calculation above
devices:
# - /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
# - /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here
# https://coral.ai/docs/m2/get-started/#2a-on-linux
- /dev/dri/card0 # for intel hwaccel, needs to be updated for your hardware - command to check: ls /dev/dri
volumes:
- /etc/localtime:/etc/localtime:ro
- /srv/dev-disk-by-uuid-6eb5aa21-c43a-47d2-ba96-1a2263e699a8/Frigate/config/config.yml:/config/config.yml
- /srv/dev-disk-by-uuid-6eb5aa21-c43a-47d2-ba96-1a2263e699a8/Frigate/media:/media/
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "1935:1935" # RTMP feeds
environment:
FRIGATE_RTSP_PASSWORD: "password"
Display More