This provides a Dockerfile
(with context) as well as a docker-compose.yml
file to build a frigate docker image that supports using a Google Coral USB TPU. It is based on the official upstream frigate image but recompiles libusb1
without udev
support.
-
SSH into the NAS.
-
Download the compose file:
wget "https://github.com/weltenwort/frigate-synology-dsm7/raw/main/docker-compose.yml"
-
Create environment file
secrets.env
to inject secrets:cat <<EOF >secrets.env FRIGATE_MQTT_USERNAME=my-frigate-mqtt-username FRIGATE_MQTT_PASSWORD=my-frigate-mqtt-password FRIGATE_CAMERA_1_RTSP_CREDENTIALS=my-camera-1-username:my-camera-1-password FRIGATE_CAMERA_2_RTSP_CREDENTIALS=my-camera-2-username:my-camera-2-password EOF
-
Create the volume directories (adjust paths if you changed them in the compose file):
mkdir -p /volume1/docker/volumes/frigate-0-config mkdir -p /volume1/docker/volumes/frigate-0-media
-
Edit the
docker-compose.yml
file and configure frigate with a config file at/volume1/docker/volumes/frigate-0-config/config.yml
using the env variables. Adjust paths and env vars to match your choices above. -
Start the container:
sudo docker-compose up --detach --force-create
-
SSH into the NAS.
-
Clone this repository:
git clone https://github.com/weltenwort/frigate-synology-dsm7.git
-
Create environment file
secrets.env
to inject secrets:cat <<EOF >secrets.env FRIGATE_MQTT_USERNAME=my-frigate-mqtt-username FRIGATE_MQTT_PASSWORD=my-frigate-mqtt-password FRIGATE_CAMERA_1_RTSP_CREDENTIALS=my-camera-1-username:my-camera-1-password FRIGATE_CAMERA_2_RTSP_CREDENTIALS=my-camera-2-username:my-camera-2-password EOF
-
Create the volume directories (adjust paths if you changed them in the compose file):
mkdir -p /volume1/docker/volumes/frigate-0-config mkdir -p /volume1/docker/volumes/frigate-0-media
-
Edit the
docker-compose.yml
file and configure frigate with a config file at/volume1/docker/volumes/frigate-0-config/config.yml
using the env variables. Adjust paths and env vars to match your choices above. -
Start the container:
sudo docker-compose up --detach --force-create