Skip to content

Instantly share code, notes, and snippets.

@thanhtantran
Created November 25, 2024 10:06
Show Gist options
  • Select an option

  • Save thanhtantran/2621c8801c3f390db9b1b87861fd57b8 to your computer and use it in GitHub Desktop.

Select an option

Save thanhtantran/2621c8801c3f390db9b1b87861fd57b8 to your computer and use it in GitHub Desktop.
frigate docker compose template
services:
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable-rk
shm_size: "128mb" # update for your cameras based on calculation above
devices:
- /dev/dri
- /dev/dma_heap
- /dev/rga
- /dev/mpp_service
- /dev/vpu_service # Video Processor Unit
volumes:
- /etc/localtime:/etc/localtime:ro
- /home/ubuntu/frigate/config:/config
- /home/ubuntu/frigate/storage:/media/frigate
- /dev/dri:/dev/dri
- 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
deploy:
resources:
limits:
memory: 4g # Giới hạn bộ nhớ
# environment:
# FRIGATE_RTSP_PASSWORD: ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment