prime yaml

This commit is contained in:
igp
2025-09-18 16:39:06 +03:00
parent f8e6b7d9dd
commit be41e42d27
2 changed files with 1151 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
#version: "3.9"
services:
# homeassistant:
# container_name: hass
# image: ghcr.io/home-assistant/home-assistant:stable
# volumes:
# - ./hass/config:/config
# - /etc/localtime:/etc/localtime:ro
# - /run/dbus:/run/dbus:ro
# restart: unless-stopped
# privileged: true
# network_mode: host
frigate:
container_name: frigate
privileged: true # this may not be necessary for all setups
restart: unless-stopped
image: ghcr.io/blakeblackshear/frigate:stable-rocm
shm_size: "4096mb" # 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-started/#2a-on-linux
- /dev/video11:/dev/video11 # For Raspberry Pi 4B
- /dev/dri:/dev/dri # For intel hwaccel, needs to be updated for your hardware
- /dev/kfd:/dev/kfd # ROCm CPU detector
volumes:
- /etc/localtime:/etc/localtime:ro
- /srv/frigate/config:/config
- /srv/frigate/storage:/media/frigate
- /srv/frigate/logs:/dev/shm/logs
- ./config.yml.prime:/config/config.yml
- type: tmpfs # Optional: 1GB of memory, reduces SSD/SD Card wear
target: /tmp/cache
tmpfs:
size: 4000000000
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~2022"
# LIBVA_DRIVER_NAME: "radeonsi"