BrainDock/compose_frigate.yaml

33 lines
786 B
YAML

version: "3.9"
services:
frigate:
container_name: frigate
image: ghcr.io/blakeblackshear/frigate:stable-tensorrt
restart: unless-stopped
shm_size: "2gb"
gpus: all
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"