version: "3.9"
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
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/dri:/dev/dri # For intel hwaccel, needs to be updated for your hardware
volumes:
- /etc/localtime:/etc/localtime:ro
- /vol1/1000/docker/frigate/config:/config
- /vol1/1000/docker/frigate/media:/media/frigate
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 1000000000
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"
mqtt:
enabled: false
ffmpeg:
hwaccel_args: preset-vaapi
record:
enabled: True
retain:
days: 7
mode: all
alerts:
retain:
days: 30
detections:
retain:
days: 30
cameras:
3D: # <------ Name the camera
enabled: true
ffmpeg:
inputs:
- path: rtsp://admin:admin@192.168.3.61:554/1/1
roles:
- detect
SX: # <------ Name the camera
enabled: true
ffmpeg:
inputs:
- path: rtsp://admin:admin@192.168.3.62:554/stream1
roles:
- detect
detect:
enabled: false # <---- disable detection until you have a working camera feed
width: 1920
height: 1080
version: 0.15-1
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END
暂无评论内容