I'm not affiliated btw, but I found the instructions really useful - they walk you through an install of Debian 13 (small version of the OS with minimal components), set up low maintenance options (auto updates etc.), install Docker & Frigate, and set up your cameras for best performance depending on your needs.
Keep everything local (if you want). I also integrate with HomeAssistant and expose that through a free CloudFlare Tunnel for access when away from home.
CloudFlare tunnels by the way - these are a great solution to accessing home-network resources without punching holes / port-forwarding etc. because all the access is outward from the home network, then an authentication layer added by CloudFlare.
Personally, I use Zoneminder: https://zoneminder.com/ Zoneminder is very "janky" but predictable.
I set mine up about three years ago, and it's been nice and boring since: https://nbailey.ca/post/nvr