ChatGPT optimized for TensorRT v3
This commit is contained in:
parent
dadcd6050f
commit
646af6793c
|
|
@ -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"
|
||||||
Loading…
Reference in New Issue