mapletree/lxc2/frigate/frigate.yml
admin_jk 71a4dcdb7d
Some checks are pending
PVE2 Infrastructure Deploy / terraform (push) Waiting to run
move
2026-02-17 07:07:47 -07:00

41 lines
No EOL
1.2 KiB
YAML
Executable file

services:
frigate:
image: ghcr.io/blakeblackshear/frigate:stable-tensorrt
privileged: true
devices:
- /dev/nvidia0:/dev/nvidia0
- /dev/nvidiactl:/dev/nvidiactl
- /dev/nvidia-uvm:/dev/nvidia-uvm
- /dev/nvidia-uvm-tools:/dev/nvidia-uvm-tools
container_name: frigate
restart: unless-stopped
privileged: true
shm_size: 512m
volumes:
- /etc/localtime:/etc/localtime:ro
- /docker/homeassistant/frigate:/config
- /mnt/local_configs/frigate/cache:/tmp/cache
- /pool/securitycameras:/media
ports:
- "5000:5000"
- "1935:1935"
runtime: nvidia
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=all,video,compute
- FRIGATE_SQLITE_PATH=/config/frigate.db
- FRIGATE_SQLITE_JOURNAL_MODE=DELETE
- PUID=1000
- PGID=1000
cpus: "2.0"
mem_limit: "6144m"
mem_reservation: "2048m"
services:
frigate:
container_name: frigate
# Use the TensorRT image to use your 3050 for detection as well as decoding
environment:
- NVIDIA_VISIBLE_DEVICES=all
# ... rest of your config (volumes, ports)