BrainDock/compose_frigate.yaml

24 lines
666 B
YAML

version: "3.8"
services:
frigate:
container_name: frigate
image: ghcr.io/blakeblackshear/frigate:stable
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
environment:
NVIDIA_VISIBLE_DEVICES: all
NVIDIA_DRIVER_CAPABILITIES: compute,video,utility
volumes:
- /etc/localtime:/etc/localtime:ro
- /opt/frigate/config:/config
- /opt/frigate/media:/media/frigate
ports:
- "5000:5000"
- "1935:1935"