NixGate/docker/compose.yml
2024-03-02 10:44:53 -08:00

27 lines
1.0 KiB
YAML

version: "3.9"
services:
frigate: #https://docs.frigate.video/frigate/installation
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: always
image: ghcr.io/blakeblackshear/frigate:stable
shm_size: "128mb" # update for your cameras see installation link above
devices:
- /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/renderD128 # for intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/USER/.docker/nvr/config.yml:/config/config.yml
- /home/USER/.docker/nvr:/media/frigate
- /home/USER/.docker/nvr:/db
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
ports:
- "5000:5000"
- "8554:8554" # RTSP feeds
- "8555:8555/tcp" # WebRTC over tcp
- "8555:8555/udp" # WebRTC over udp