ChatGPT optimized for TensorRT v3

This commit is contained in:
Marc Blatter 2026-05-22 18:12:13 +00:00
parent dadcd6050f
commit 646af6793c
1 changed files with 14 additions and 7 deletions

View File

@ -5,29 +5,36 @@ services:
container_name: frigate container_name: frigate
image: ghcr.io/blakeblackshear/frigate:stable-tensorrt image: ghcr.io/blakeblackshear/frigate:stable-tensorrt
restart: unless-stopped restart: unless-stopped
shm_size: "2gb" stop_grace_period: 30s
shm_size: "4gb"
gpus: all gpus: all
security_opt: security_opt:
- no-new-privileges:true - no-new-privileges:true
environment: environment:
TZ: Europe/Zurich
NVIDIA_VISIBLE_DEVICES: all NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: compute,video,utility NVIDIA_DRIVER_CAPABILITIES: compute,video,utility
LIBVA_DRIVER_NAME: nvidia
devices: devices:
- /dev/bus/usb:/dev/bus/usb - /dev/bus/usb:/dev/bus/usb
- /dev/dri:/dev/dri - /dev/dri:/dev/dri
tmpfs:
- /tmp/cache:size=4G
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- /opt/frigate/config:/config - /opt/frigate/config:/config
- /opt/frigate/media:/media/frigate - /opt/frigate/media:/media/frigate
- type: tmpfs
target: /tmp/cache
tmpfs:
size: 2000000000
ports: ports:
- "5000:5000" - "5000:5000"
- "1935:1935" - "1935:1935"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/api/version"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
logging: logging:
driver: "json-file" driver: json-file
options: options:
max-size: "50m" max-size: "100m"
max-file: "5" max-file: "5"