From 293ee80a6f67d32aaf515848be770583f7032ea1 Mon Sep 17 00:00:00 2001
From: Ashish D'Souza <sudouser512@gmail.com>
Date: Sat, 5 Apr 2025 00:19:35 -0400
Subject: [PATCH] #16 Upgrade to v0.15.0 (#17)

* Bump Docker image tagged version
* Update record config section

Reviewed-on: https://gitea.homelab.net/ashish/frigate/pulls/17
Co-authored-by: Ashish D'Souza <sudouser512@gmail.com>
Co-committed-by: Ashish D'Souza <sudouser512@gmail.com>
---
 conf/config.yaml         | 14 +++++++++-----
 conf/docker-compose.yaml |  2 +-
 2 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/conf/config.yaml b/conf/config.yaml
index 918928f..977c9b7 100644
--- a/conf/config.yaml
+++ b/conf/config.yaml
@@ -215,12 +215,16 @@ record:
   retain:
     days: 30  # 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
+  alerts:
     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)
+      days: 30  # Number of days to retain alerts
+    pre_capture: 5  # Number of seconds before the alert to include
+    post_capture: 5  # Number of seconds after the alert to include
+  detections:
+    retain:
+      days: 30  # Number of days to retain detections
+    pre_capture: 5  # Number of seconds before the detection to include
+    post_capture: 5  # Number of seconds after the detection to include
 
 snapshots:
   enabled: true
diff --git a/conf/docker-compose.yaml b/conf/docker-compose.yaml
index 973ebb8..c35046e 100644
--- a/conf/docker-compose.yaml
+++ b/conf/docker-compose.yaml
@@ -3,7 +3,7 @@
 services:
   frigate:
     container_name: frigate
-    image: ghcr.io/blakeblackshear/frigate:0.14.1
+    image: ghcr.io/blakeblackshear/frigate:0.15.0
     labels:
       autoheal: 'true'
     restart: unless-stopped