ChatGPT optimized for TensorRT
This commit is contained in:
parent
f818f0bc95
commit
3daffa6bd0
|
|
@ -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"
|
||||
logging:
|
||||
driver: "json-file"
|
||||
options:
|
||||
max-size: "50m"
|
||||
max-file: "5"
|
||||
Loading…
Reference in New Issue