From 0e9702d3448ab5a897df82ee625691856b756f99 Mon Sep 17 00:00:00 2001 From: "Daniel J. Turner" Date: Thu, 22 Jan 2026 02:06:39 +1300 Subject: [PATCH] Frigate configuration for P1 with GFX --- container-compose.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 container-compose.yml diff --git a/container-compose.yml b/container-compose.yml new file mode 100644 index 0000000..343d3ea --- /dev/null +++ b/container-compose.yml @@ -0,0 +1,34 @@ +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/card0:/dev/dri/card0 + - /dev/dri/card0:/dev/dri/card1 + #- /dev/dri/renderD128:/dev/dri/renderD128 # For intel hwaccel, needs to be updated for your hardware + #- /dev/dri/renderD129:/dev/dri/renderD129 # For intel hwaccel, needs to be updated for your hardware + ffmpeg: + hwaccel_args: preset-vaapi + volumes: + - /etc/localtime:/etc/localtime:ro + - /etc/frigate:/config + - /nfs/frigate/data:/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: "B1tst0rm" + + environment_vars: + LIBVA_DRIVER_NAME: radeonsi