ChatGPT optimized for TensorRT
This commit is contained in:
parent
f818f0bc95
commit
3daffa6bd0
|
|
@ -1,24 +1,33 @@
|
||||||
version: "3.8"
|
version: "3.9"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
frigate:
|
frigate:
|
||||||
container_name: frigate
|
container_name: frigate
|
||||||
image: ghcr.io/blakeblackshear/frigate:stable
|
image: ghcr.io/blakeblackshear/frigate:stable-tensorrt
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
shm_size: "1gb"
|
shm_size: "2gb"
|
||||||
privileged: true # nötig für GPU oder Zugriff auf /dev
|
runtime: nvidia
|
||||||
deploy:
|
security_opt:
|
||||||
resources:
|
- no-new-privileges:true
|
||||||
reservations:
|
|
||||||
devices:
|
|
||||||
- capabilities: ["gpu"] # optional, nur sichtbar wenn GPU verfügbar
|
|
||||||
environment:
|
environment:
|
||||||
NVIDIA_VISIBLE_DEVICES: all
|
NVIDIA_VISIBLE_DEVICES: all
|
||||||
NVIDIA_DRIVER_CAPABILITIES: compute,video,utility
|
NVIDIA_DRIVER_CAPABILITIES: compute,video,utility
|
||||||
|
devices:
|
||||||
|
- /dev/bus/usb:/dev/bus/usb
|
||||||
|
- /dev/dri:/dev/dri
|
||||||
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"
|
||||||
|
logging:
|
||||||
|
driver: "json-file"
|
||||||
|
options:
|
||||||
|
max-size: "50m"
|
||||||
|
max-file: "5"
|
||||||
Loading…
Reference in New Issue