Because /usr/local is reserved for Docker, the example demonstrates installation of Unifi Video in a manner where the Host Data Volume directories are located in ~/Applications/unifi-video
. You can change this to your liking.
NB! If you receive permission errors when executing commands, precede them with sudo
~/Applications/unifi-video
directorydocker pull exsilium/unifi-video:v3.10.13
`$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
exsilium/unifi-video v3.10.13 1cbeb1e369da 44 minutes ago 869.9 MB
run.sh
from here~/Applications/unifi-video
mkdir mongodb
mkdir unifi-video
mkdir unifi-video/logs
run.sh
to make sure the BASEDIR and IP are reflecting your setup. The default 0.0.0.0 binds the ports to all interfaces../run.sh
to run the container or execute docker run
with the appropriate parameters.`Checking for Host data volumes: MongoDB-OK | Unifi-Video-OK | Log-OK
16eeb080627ac648804fd0f9e64dd4569680137989d46c388ea74afb59480440
https://<yourIP>:7443
By default, Docker provides network isolation and due to that the automatic discovery will not work. Directly access your camera IP and enter the host IP of your server where the unifi-video docker image is running.
With the 3.10.x images, there has been some significant changes to underlying OS version and the bundled MongoDB version - this makes in place upgrade more challenging.
NB! Really, make a backup! NB! MongoDB will be upgraded from 2.6 to 3.6 NB! Make sure you are on v3.9.12
v3.10.13
formatmongodump
of the av
database. E.g: mongodump --port 7441 -d av -o /var/lib/unifi-video/db.backup
/var/lib/unifi-video/db/*
from the Host volumemongorestore --drop --port 7441 -d av /var/lib/unifi-video/db.backup/av
NB! Always create a backup before trying to upgrade! NB! Upgrade scenarios over multiple versions have not been tested! NB! Make sure to read release notes prior to upgrade! NB! Note that, when upgrading to v3.10.13 from previous minor version, you first need to upgrade to v3.9.12.
~/Applications/unifi-video
)docker pull exsilium/unifi-video:v3.9.12
unifi-video
. Refer to docker rename commandrun.sh
to reflect the new version (v3.9.12)run.sh
or manually calling docker run
with appropriate arguments.If you have questions, comments, concerns. Did you find something not working or if you just need help, please file a Github Issue and I'll do my best to help you.
Please don't use Docker Hub comments section for reaching out!