Git Product home page Git Product logo

frigate-synology-dsm7's Introduction

frigate-synology-dsm7

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.

Usage on the NAS with docker-compose but without git

  1. SSH into the NAS.

  2. Download the compose file:

    wget "https://github.com/weltenwort/frigate-synology-dsm7/raw/main/docker-compose.yml"
  3. 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
  4. 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
  5. 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.

  6. Start the container:

    sudo docker-compose up --detach --force-recreate

Usage on the NAS with docker-compose and git

  1. SSH into the NAS.

  2. Clone this repository:

    git clone https://github.com/weltenwort/frigate-synology-dsm7.git
  3. 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
  4. 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
  5. 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.

  6. Start the container:

    sudo docker-compose up --detach --force-recreate

frigate-synology-dsm7's People

Contributors

dependabot[bot] avatar weltenwort avatar deviant77 avatar caros2017 avatar baylanger avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.