GithubHelp home page GithubHelp logo

unifi-protect's Introduction

This image does not have a future

It looks like release of the 1.12.5 package was not intentional... again. And future versions won't be public, the installations won't be upgradable and may eventually only work on Ubiquity hardware.

The .deb will be gone soon, and the upgrades around 1.14 wouldn't work on non-UI hardware anyway

This image works w/ a macvlan network

You'll need to run this image on your lan w/ a real IP, using Docker's macvlan. It doesn't use dhcp and it doesn't watch for ip address conflicts, so be sure to account for that like the example below.

docker network create -d macvlan \
    --subnet 192.168.1.1/24 \
    --gateway 192.168.1.1 \
    --ip-range 192.168.1.16/28 \
    -o parent=eth0 lan

Note that you'll need to use the correct subnet, gateway, ip-range and network interface for your network and server. These example IPs may or may not be correct.

unifi-protect

An Ubuntu based Docker image for Unifi Protect

Visit http://<ip.address>:7080/ to start the Unifi Protect wizard.

Run it

docker run \
    --name unifi-protect \
    --cap-add SYS_ADMIN \
    --cap-add DAC_READ_SEARCH \
    -p 7080:7080 \
    -p 7442:7442 \
    -p 7443:7443 \
    -p 7444:7444 \
    -p 7447:7447 \
    -p 7550:7550 \
    -v <data dir>:/srv/unifi-protect \
    -v <db dir>:/var/lib/postgresql/10/main \
    -v <db config dir>:/etc/postgresql/10/main \
    -e TZ=America/Los_Angeles \
    -e PUID=999 \
    -e PGID=999 \
    -e PUID_POSTGRES=102 \
    -e PGID_POSTGRES=104 \
    fryfrog/unifi-protect

Example folder structure for the data, db and db-config folders.

storage/unifi-protect
├ data
├ db
└ db-config

tmpfs mount error

mount: tmpfs is write-protected, mounting read-only
mount: cannot mount tmpfs read-only

If you get this tmpfs mount error, add --security-opt apparmor:unconfined \ to your list of run options. This error has been seen on Ubuntu, but may occur on other platforms as well.

Alternative Unifi Protect Images

unifi-protect's People

Contributors

fryfrog 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.