Added Frigate
This commit is contained in:
1 parent
a1d91c7a16
commit
2b80cc95c0
9 files changed
+493
-2
No files matched your search
@@ -0,0 +1,109 @@
|
||||
mqtt:
|
||||
host: 192.168.0.6
|
||||
user: '{FRIGATE_MQTT_USERNAME}'
|
||||
password: '{FRIGATE_MQTT_PASSWORD}'
|
||||
|
||||
detectors:
|
||||
cpu1:
|
||||
type: cpu
|
||||
num_threads: 2
|
||||
cpu2:
|
||||
type: cpu
|
||||
num_threads: 2
|
||||
|
||||
cameras:
|
||||
garage:
|
||||
enabled: true
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: 'rtsp://{FRIGATE_GARAGE_RTSP_USERNAME}:{FRIGATE_GARAGE_RTSP_PASSWORD}@192.168.0.102:554/live'
|
||||
roles:
|
||||
- detect
|
||||
- record
|
||||
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H264
|
||||
output_args:
|
||||
record: preset-record-generic-audio-aac # Record with aac audio
|
||||
detect:
|
||||
enabled: true
|
||||
width: 1920
|
||||
height: 1080
|
||||
front_door:
|
||||
enabled: true
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: 'rtsp://{FRIGATE_FRONT_DOOR_RTSP_USERNAME}:{FRIGATE_FRONT_DOOR_RTSP_PASSWORD}@192.168.0.108:554/live/ch0'
|
||||
roles:
|
||||
- detect
|
||||
- record
|
||||
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H264
|
||||
output_args:
|
||||
record: preset-record-generic-audio-aac # Record with aac audio
|
||||
detect:
|
||||
enabled: true
|
||||
width: 1920
|
||||
height: 1080
|
||||
back_door:
|
||||
enabled: true
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: 'rtsp://{FRIGATE_BACK_DOOR_RTSP_USERNAME}:{FRIGATE_BACK_DOOR_RTSP_PASSWORD}@192.168.0.111:554/live/ch0'
|
||||
roles:
|
||||
- detect
|
||||
- record
|
||||
hwaccel_args: preset-intel-qsv-h264 # Use Intel QSV hardware acceleration for H264
|
||||
output_args:
|
||||
record: preset-record-generic-audio-aac # Record with aac audio
|
||||
detect:
|
||||
enabled: true
|
||||
width: 1920
|
||||
height: 1080
|
||||
family_room:
|
||||
enabled: true
|
||||
ffmpeg:
|
||||
inputs:
|
||||
- path: 'rtsp://{FRIGATE_FAMILY_ROOM_RTSP_USERNAME}:{FRIGATE_FAMILY_ROOM_RTSP_PASSWORD}@192.168.0.104:554/live/ch0'
|
||||
roles:
|
||||
- detect
|
||||
- record
|
||||
output_args:
|
||||
record: preset-record-generic-audio-aac # Record with aac audio
|
||||
detect:
|
||||
enabled: true
|
||||
width: 1280
|
||||
height: 720
|
||||
|
||||
ffmpeg:
|
||||
hwaccel_args: preset-vaapi # Use VAAPI hardware acceleration by default
|
||||
input_args: preset-rtsp-generic
|
||||
|
||||
detect:
|
||||
enabled: true
|
||||
fps: 5
|
||||
max_disappeared: 25 # Number of frames without a detection before Frigate considers an object to be gone
|
||||
|
||||
record:
|
||||
enabled: true
|
||||
expire_interval: 60
|
||||
retain:
|
||||
days: 10 # Number of days to retain recordings regardless of events
|
||||
mode: all # Mode for retention: all (24/7), motion (only segments with motion), active_objects (only segments with active objects)
|
||||
events:
|
||||
pre_capture: 5 # Number of seconds before the event to include
|
||||
post_capture: 5 # Number of seconds after the event to include
|
||||
objects:
|
||||
- person
|
||||
retain:
|
||||
default: 30 # Number of days to retain recordings of events
|
||||
mode: all # Mode for retention: all (24/7), motion (only segments with motion), active_objects (only segments with active objects)
|
||||
|
||||
snapshots:
|
||||
enabled: true
|
||||
|
||||
rtmp:
|
||||
enabled: false
|
||||
|
||||
motion:
|
||||
|
||||
birdseye:
|
||||
enabled: true
|
||||
mode: continuous
|
||||
@@ -0,0 +1,78 @@
|
||||
# docker-compose.yaml
|
||||
|
||||
services:
|
||||
frigate:
|
||||
container_name: frigate
|
||||
image: ghcr.io/blakeblackshear/frigate:0.12.0
|
||||
labels:
|
||||
autoheal: 'true'
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ls /media/frigate && curl -s -f http://localhost:5000 -o /dev/null
|
||||
interval: 60s
|
||||
retries: 1
|
||||
start_period: 30s
|
||||
timeout: 30s
|
||||
environment:
|
||||
FRIGATE_MQTT_USERNAME: frigate
|
||||
FRIGATE_MQTT_PASSWORD: ${FRIGATE_MQTT_PASSWORD}
|
||||
FRIGATE_GARAGE_RTSP_USERNAME: motion
|
||||
FRIGATE_GARAGE_RTSP_PASSWORD: ${FRIGATE_GARAGE_RTSP_PASSWORD}
|
||||
FRIGATE_FRONT_DOOR_RTSP_USERNAME: motion
|
||||
FRIGATE_FRONT_DOOR_RTSP_PASSWORD: ${FRIGATE_FRONT_DOOR_RTSP_PASSWORD}
|
||||
FRIGATE_BACK_DOOR_RTSP_USERNAME: motion
|
||||
FRIGATE_BACK_DOOR_RTSP_PASSWORD: ${FRIGATE_BACK_DOOR_RTSP_PASSWORD}
|
||||
FRIGATE_FAMILY_ROOM_RTSP_USERNAME: frigate
|
||||
FRIGATE_FAMILY_ROOM_RTSP_PASSWORD: ${FRIGATE_FAMILY_ROOM_RTSP_PASSWORD}
|
||||
shm_size: '150mb'
|
||||
devices:
|
||||
- /dev/dri:/dev/dri
|
||||
volumes:
|
||||
- type: volume
|
||||
source: config
|
||||
target: /config
|
||||
- type: volume
|
||||
source: media
|
||||
target: /media/frigate
|
||||
- type: tmpfs
|
||||
target: /tmp/cache
|
||||
tmpfs:
|
||||
size: 1000000000
|
||||
- type: bind
|
||||
source: /etc/localtime
|
||||
target: /etc/localtime
|
||||
read_only: true
|
||||
# networks:
|
||||
# - frigate
|
||||
ports:
|
||||
- 127.0.0.1:5000:5000
|
||||
# mqtt:
|
||||
# container_name: mqtt
|
||||
# image: eclipse-mosquitto:latest
|
||||
# command:
|
||||
# - mosquitto
|
||||
# - -c
|
||||
# - /mosquitto-no-auth.conf
|
||||
# restart: unless-stopped
|
||||
# volumes:
|
||||
# - type: bind
|
||||
# source: /etc/localtime
|
||||
# target: /etc/localtime
|
||||
# read_only: true
|
||||
# networks:
|
||||
# - frigate
|
||||
# ports:
|
||||
# - 1883:1883
|
||||
# - 9001:9001
|
||||
|
||||
#networks:
|
||||
# frigate:
|
||||
# name: frigate
|
||||
|
||||
volumes:
|
||||
config:
|
||||
name: frigate-config
|
||||
external: true
|
||||
media:
|
||||
name: frigate-media
|
||||
external: true
|
||||
@@ -0,0 +1,14 @@
|
||||
server {
|
||||
listen *:443 ssl;
|
||||
server_name "frigate.homelab.net";
|
||||
|
||||
ssl_certificate "/certs/homelab.net/homelab.net.crt";
|
||||
ssl_certificate_key "/certs/homelab.net/homelab.net.key";
|
||||
|
||||
location / {
|
||||
proxy_pass "http://localhost:5000/";
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user