From 3daffa6bd034d65ea95f5ce1e99e25192469b851 Mon Sep 17 00:00:00 2001 From: Marc Blatter Date: Fri, 22 May 2026 17:48:29 +0000 Subject: [PATCH] ChatGPT optimized for TensorRT --- compose_frigate.yaml | 29 +++++++++++++++++++---------- 1 file changed, 19 insertions(+), 10 deletions(-) diff --git a/compose_frigate.yaml b/compose_frigate.yaml index 3f3ceac..43502a5 100644 --- a/compose_frigate.yaml +++ b/compose_frigate.yaml @@ -1,24 +1,33 @@ -version: "3.8" +version: "3.9" services: frigate: container_name: frigate - image: ghcr.io/blakeblackshear/frigate:stable + image: ghcr.io/blakeblackshear/frigate:stable-tensorrt restart: unless-stopped - shm_size: "1gb" - privileged: true # nötig für GPU oder Zugriff auf /dev - deploy: - resources: - reservations: - devices: - - capabilities: ["gpu"] # optional, nur sichtbar wenn GPU verfügbar + shm_size: "2gb" + runtime: nvidia + security_opt: + - no-new-privileges:true environment: NVIDIA_VISIBLE_DEVICES: all NVIDIA_DRIVER_CAPABILITIES: compute,video,utility + devices: + - /dev/bus/usb:/dev/bus/usb + - /dev/dri:/dev/dri volumes: - /etc/localtime:/etc/localtime:ro - /opt/frigate/config:/config - /opt/frigate/media:/media/frigate + - type: tmpfs + target: /tmp/cache + tmpfs: + size: 2000000000 ports: - "5000:5000" - - "1935:1935" \ No newline at end of file + - "1935:1935" + logging: + driver: "json-file" + options: + max-size: "50m" + max-file: "5" \ No newline at end of file