45 lines
1.6 KiB
YAML
45 lines
1.6 KiB
YAML
|
|
services:
|
||
|
|
frigate:
|
||
|
|
container_name: frigate
|
||
|
|
privileged: true # this may not be necessary for all setups
|
||
|
|
restart: unless-stopped
|
||
|
|
stop_grace_period: 30s
|
||
|
|
image: ghcr.io/blakeblackshear/frigate:0.17.0
|
||
|
|
shm_size: "512mb" # update for your cameras based on calculation above
|
||
|
|
devices:
|
||
|
|
- /dev/bus/usb:/dev/bus/usb # passes the USB Coral, needs to be modified for other versions
|
||
|
|
#- /dev/apex_0:/dev/apex_0 # passes a PCIe Coral, follow driver instructions here https://coral.ai/docs/m2/get-$
|
||
|
|
- /dev/dri/renderD128:/dev/dri/renderD128 # for intel hwaccel, needs to be updated for your hardware
|
||
|
|
volumes:
|
||
|
|
- /etc/localtime:/etc/localtime:ro
|
||
|
|
- ./:/config
|
||
|
|
- ./config.yml:/config/config.yml
|
||
|
|
- /mnt/main/void/security_footage:/media/frigate
|
||
|
|
# - /usr/bin/ffmpeg:/usr/lib/btbn-ffmpeg
|
||
|
|
- type: tmpfs
|
||
|
|
target: /tmp/cache
|
||
|
|
tmpfs:
|
||
|
|
size: 500000000
|
||
|
|
ports:
|
||
|
|
- "5000:5000"
|
||
|
|
- "8971:8971"
|
||
|
|
- "8554:8554" # RTSP feeds
|
||
|
|
- "8555:8555/tcp" # WebRTC over tcp
|
||
|
|
- "8555:8555/udp" # WebRTC over udp
|
||
|
|
# runtime: nvidia
|
||
|
|
environment:
|
||
|
|
FRIGATE_RTSP_PASSWORD: "password"
|
||
|
|
PLUS_API_KEY : 23dc7652-a5c6-4fda-8b3d-8c454ba7d93a:65d1a0d221926ea68bc09bbd6aa45a404f158d1a
|
||
|
|
TZ : Australia/Melbourne
|
||
|
|
#networks:
|
||
|
|
# default:
|
||
|
|
# external: true
|
||
|
|
# name: stiffhome
|
||
|
|
labels:
|
||
|
|
homepage.enabled: "true"
|
||
|
|
homepage.group: "Media"
|
||
|
|
homepage.name: "Frigate"
|
||
|
|
homepage.icon: "frigate.png"
|
||
|
|
homepage.url: "https://cam.dovile.com.au"
|
||
|
|
homepage.widget.type: frigate
|
||
|
|
homepage.widget.url: https://cam.dovile.com.au
|