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)