44 lines
1.4 KiB
YAML
44 lines
1.4 KiB
YAML
version: "3.9"
|
|
|
|
services:
|
|
frigate:
|
|
container_name: frigate
|
|
image: ghcr.io/blakeblackshear/frigate:stable
|
|
shm_size: "512mb" # Update based on camera resolution and count
|
|
privileged: true # Add this
|
|
environment:
|
|
- LIBVA_DRIVER_NAME=iHD # Forces the correct driver for your iGPU
|
|
- NEOReadDebugKeys=1
|
|
- OverrideGpuAddressSpace=48
|
|
devices:
|
|
- /dev/dri:/dev/dri # For Intel hardware acceleration
|
|
# - /dev/bus/usb:/dev/bus/usb # Google Coral USB
|
|
volumes:
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- ${CONFIG_ROOT}/frigate:/config
|
|
- ${CONFIG_ROOT}/frigate/storage:/media/frigate
|
|
- type: tmpfs
|
|
target: /tmp/cache
|
|
tmpfs:
|
|
size: 1000000000
|
|
ports:
|
|
- "5000:5000"
|
|
- "8554:8554" # RTSP feeds
|
|
- "8555:8555/tcp" # WebRTC
|
|
- "8555:8555/udp" # WebRTC
|
|
restart: unless-stopped
|
|
labels:
|
|
# Traefik
|
|
traefik.enable: "true"
|
|
traefik.http.routers.frigate.rule: "Host(`frigate.${DOMAIN}`)"
|
|
traefik.http.routers.frigate.entrypoints: "https"
|
|
traefik.http.routers.frigate.service: "frigate"
|
|
traefik.http.routers.frigate.tls.certresolver: "cloudflare"
|
|
traefik.http.services.frigate.loadbalancer.server.port: "5000"
|
|
# Homepage
|
|
homepage.group: "Security"
|
|
homepage.name: "Frigate"
|
|
homepage.icon: "frigate.svg"
|
|
homepage.href: "https://frigate.${DOMAIN}"
|
|
homepage.description: "NVR with AI object detection"
|