Enhance README.md with detailed service descriptions and port matrix for Docker services in the home lab environment.
This commit is contained in:
32
frigate/compose.yaml
Normal file
32
frigate/compose.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
version: "3.9"
|
||||
services:
|
||||
frigate:
|
||||
container_name: frigate
|
||||
restart: unless-stopped
|
||||
stop_grace_period: 30s # allow enough time to shut down the various services
|
||||
image: ghcr.io/blakeblackshear/frigate:stable
|
||||
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
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ./config:/config
|
||||
- ./storage:/media/frigate
|
||||
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
|
||||
target: /tmp/cache
|
||||
tmpfs:
|
||||
size: 3000000000
|
||||
ports:
|
||||
- "8971:8971"
|
||||
- "5000:5000" # Internal unauthenticated access. Expose carefully.
|
||||
- "8554:8554" # RTSP feeds
|
||||
- "8555:8555/tcp" # WebRTC over tcp
|
||||
- "8555:8555/udp" # WebRTC over udp
|
||||
environment:
|
||||
FRIGATE_RTSP_PASSWORD: "password"
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/api/version"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 60s
|
||||
116
frigate/config/config.yaml
Normal file
116
frigate/config/config.yaml
Normal file
@@ -0,0 +1,116 @@
|
||||
mqtt:
|
||||
enabled: true
|
||||
host: 192.168.2.158
|
||||
user: frigate
|
||||
password: Frigate1234!
|
||||
|
||||
go2rtc:
|
||||
streams:
|
||||
achtertuin:
|
||||
- ffmpeg:http://192.168.2.26/flv?port=1935&app=bcs&stream=channel0_main.bcs&user=admin&password=Olenoob220996 # channel numbers are 0-15
|
||||
- ffmpeg:your_reolink_camera_via_nvr#audio=aac
|
||||
achtertuin_sub:
|
||||
- ffmpeg:http://192.168.2.26/flv?port=1935&app=bcs&stream=channel0_ext.bcs&user=admin&password=Olenoob220996
|
||||
tuinhuis:
|
||||
- ffmpeg:http://192.168.2.26/flv?port=1935&app=bcs&stream=channel1_main.bcs&user=admin&password=Olenoob220996 # channel numbers are 0-15
|
||||
- ffmpeg:your_reolink_camera_via_nvr#audio=aac
|
||||
tuinhuis_sub:
|
||||
- ffmpeg:http://192.168.2.26/flv?port=1935&app=bcs&stream=channel1_ext.bcs&user=admin&password=Olenoob220996
|
||||
carport:
|
||||
- ffmpeg:http://192.168.2.26/flv?port=1935&app=bcs&stream=channel2_main.bcs&user=admin&password=Olenoob220996 # channel numbers are 0-15
|
||||
- ffmpeg:your_reolink_camera_via_nvr#audio=aac
|
||||
carport_sub:
|
||||
- ffmpeg:http://192.168.2.26/flv?port=1935&app=bcs&stream=channel2_ext.bcs&user=admin&password=Olenoob220996
|
||||
|
||||
|
||||
cameras:
|
||||
achtertuin:
|
||||
enabled: true
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: rtsp://127.0.0.1:8554/achtertuin?video=copy&audio=aac # <----- The stream you want to use for detection
|
||||
roles:
|
||||
- record
|
||||
- path: rtsp://127.0.0.1:8554/achtertuin_sub?video=copy
|
||||
roles:
|
||||
- detect
|
||||
zones:
|
||||
ingang:
|
||||
coordinates:
|
||||
0.292,0.006,0.138,0.134,0,0.178,0.002,0.995,0.994,0.995,0.998,0.391,0.998,0.131,0.649,0.075,0.647,0.007
|
||||
loitering_time: 0
|
||||
inertia: 3
|
||||
objects: person
|
||||
review:
|
||||
alerts:
|
||||
required_zones: ingang
|
||||
motion:
|
||||
threshold: 33
|
||||
contour_area: 10
|
||||
improve_contrast: true
|
||||
tuinhuis:
|
||||
enabled: true
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: rtsp://127.0.0.1:8554/tuinhuis?video=copy&audio=aac # <----- The stream you want to use for detection
|
||||
roles:
|
||||
- record
|
||||
- path: rtsp://127.0.0.1:8554/tuinhuis_sub?video=copy
|
||||
roles:
|
||||
- detect
|
||||
carport:
|
||||
enabled: true
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: rtsp://127.0.0.1:8554/carport?video=copy&audio=aac # <----- The stream you want to use for detection
|
||||
roles:
|
||||
- record
|
||||
- path: rtsp://127.0.0.1:8554/carport_sub?video=copy
|
||||
roles:
|
||||
- detect
|
||||
|
||||
motion:
|
||||
threshold: 35
|
||||
contour_area: 10
|
||||
improve_contrast: true
|
||||
version: 0.16-0
|
||||
|
||||
detect:
|
||||
enabled: true
|
||||
|
||||
semantic_search:
|
||||
enabled: false
|
||||
model_size: small
|
||||
|
||||
face_recognition:
|
||||
enabled: true
|
||||
model_size: large
|
||||
|
||||
lpr:
|
||||
enabled: true
|
||||
|
||||
classification:
|
||||
bird:
|
||||
enabled: false
|
||||
|
||||
detectors:
|
||||
coral:
|
||||
type: edgetpu
|
||||
device: usb
|
||||
|
||||
record:
|
||||
enabled: true
|
||||
retain:
|
||||
days: 0
|
||||
alerts:
|
||||
retain:
|
||||
days: 3 # <- number of days to keep alert recordings
|
||||
detections:
|
||||
retain:
|
||||
days: 3
|
||||
|
||||
objects:
|
||||
track:
|
||||
- person
|
||||
- car
|
||||
- bicycle
|
||||
Reference in New Issue
Block a user