How to Install Frigate on Your Synology NAS

How to Install Frigate on Your Synology NAS

Frigate is an open source NVR built around real-time AI object detection. All processing is performed locally on your own hardware, and your camera feeds never leave your home. In this step by step guide I will show you how to install Frigate on your Synology NAS using Docker & Portainer.

💡Note: This guide works perfectly with the latest Frigate v0.14.1 release.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Text Editor via Synology “Package Center”. (Mandatory STEP.) If you already have Text Editor installed on your Synology NAS, skip this STEP.

Synology Install Text Editor 2023

  • STEP 3

Install Portainer using my step by step guide. If you already have Portainer installed on your Synology NAS, skip this STEP. Attention: Make sure you have installed the latest Portainer version.

  • STEP 4

Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it frigate. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Frigate Synology NAS Set up 1

  • STEP 5

Now create two new folders inside the frigate folder that you have previously created at STEP 4 and name them config and media. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Frigate Synology NAS Set up 2

  • STEP 6

Log into Portainer using your username and password. On the left sidebar in Portainer, click on Stacks then + Add stack. Follow the instructions in the image below.

1 Synology Portainer Add Stack

  • STEP 7

In the Name field type in frigate. Follow the instructions in the image below.

Note: Copy Paste the code below in the Portainer Stacks Web editor.

services:
  frigate:
    image: ghcr.io/blakeblackshear/frigate:0.14.1
    container_name: Frigate
    hostname: frigate
    restart: on-failure:5
    security_opt:
     - apparmor=unconfined
     - systempaths=unconfined
    shm_size: 512mb
    environment:
     TZ: Europe/Bucharest
     FRIGATE_RTSP_PASSWORD: mariushosting
    #devices:
    #  - /dev/dri/renderD128 # for NAS with an Intel Hardware Accelerator
    volumes:
      - /etc/localtime:/etc/localtime:ro
      - /volume1/docker/frigate/config:/config:rw
      - /volume1/docker/frigate/media:/media/frigate:rw
      - type: tmpfs
        target: /tmp/cache
        tmpfs:
          size: 1000000000
    ports:
      - 5563:5000 #Web UI Interface Port
      - 8554:8554 # RTSP feeds
      - 8555:8555/tcp # WebRTC over tcp
      - 8555:8555/udp # WebRTC over udp

Note: Before you paste the code above in the Web editor area below, change the value for TZ. (Select your current Time Zone from this list.)
Note: Before you paste the code above in the Web editor area below, change the value for FRIGATE_RTSP_PASSWORD with your own Cameras password. mariushosting is an example for a password.
Note: If your NAS supports Hardware Acceleration, in the compose above, you can remove the # hashtag from the devices part and from – /dev/dri/renderD128

Frigate Synology NAS Set up 3

  • STEP 8

Scroll down on the page until you see a button named Deploy the stack. Click on it. Follow the instructions in the image below. The installation process can take up to a few minutes. It will depend on your Internet speed connection.

Frigate Synology NAS Set up 4

  • STEP 9

If everything goes right, you will see the following message at the top right of your screen: “Success Stack successfully deployed“.

Frigate Synology NAS Set up 5

  • STEP 10

Go back to STEP 1 or you will deal with karma 🙂

  • STEP 11

The installation process can take up to a few seconds/minutes. It will depend on your Internet speed connection. Now open your browser and type in http://Synology-ip-address:5563 Follow the instructions in the image below.

Frigate Synology NAS Set up 6

  • STEP 12

At the bottom left of the page, click the Settings icon. Click Dark Mode and Theme to change your theme colors. Follow the instructions in the image below.

Frigate Synology NAS Set up 7

  • STEP 13

Add your first camera. At the bottom left of the page, click the Settings icon, then Configuration editor. Follow the instructions in the image below.

Frigate Synology NAS Set up 8

  • STEP 14

Type in the name of your camera, then add the RTSP address of your camera. Click Save & Restart. Follow the instructions in the image below. ⚠️Warning: Make sure the RTSP Setting is activated on your CameraCheck out my example with a Reolink Camera.

Frigate Synology NAS Set up 9

  • STEP 15

Your first camera at a glance!

Frigate Synology NAS Set up 10

  • STEP 16

Your Frigate stats at a glance!

Frigate Synology NAS Set up 12

  • STEP 17

Instead of using the Configuration editor at STEP 13, you can manually modify the config.yaml file in /volume1/docker/frigate/config/config.yaml

Frigate Synology NAS Set up 13

After you add your cameras, save your Frigate config file. ⚠️Note: You will need to have the Text Editor package installed to be able to open .yaml files as per the instructions at STEP 2.

Frigate Synology NAS Set up 14

  • STEP 18

Check out the Full Frigate Documentation to add your Cameras.

Enjoy Frigate!

🆘TROUBLESHOOTING

If you encounter issues by using this container, make sure to check out the Common Docker issues article.

Note: If you want to run the Frigate container over HTTPS, check How to Run Docker Containers Over HTTPS. In order to make Frigate work via HTTPS, it’s mandatory to activate WebSocket.

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: How to Back Up Docker Containers on your Synology NAS.
Note: Find out how to update the Frigate container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.

This post was updated on Monday / December 23rd, 2024 at 4:15 PM