Docker image for Ubiquiti Unifi Video Controller
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
files
scripts
.gitignore
Dockerfile
LICENSE
Makefile
README.md
docker-compose.yml

README.md

mgcrea/unifi-video Docker Pulls Docker Latest

Docker image for Ubiquiti Unifi Video Controller

Install

docker pull mgcrea/unifi-video:3

Quickstart

Use docker-compose to start the service

docker-compose up -d

Compose

version: '3'
services:
  unifi-video:
    image: mgcrea/unifi-video:3
    container_name: unifi-video
    environment:
      - TZ=Europe/Paris
    network_mode: "host"
    privileged: true
    volumes:
      - ./data/lib:/var/lib/unifi-video:rw
      - ./data/log:/var/lib/unifi-video/logs:rw
      - ./data/videos:/var/lib/unifi-video/videos:rw
      - ./data/work:/usr/lib/unifi-video/work:rw
      - ./data/cache:/var/cache/unifi-video:rw
    ports:
      - "6666:6666"
      - "7080:7080/tcp"
      - "7443:7443/tcp"
      - "7440:7440"
      - "7442:7442"
      - "7445:7445"
      - "7446:7446"
      - "7447:7447"
    restart: always

SSH

Fix date

ntpclient -h 0.pool.ntp.org -s

Debug

Create and inspect a new instance

docker-compose run unifi_video_controller /bin/bash

Inspect a running instance

docker exec -it unifi_video_controller script -q -c "TERM=xterm /bin/bash" /dev/null;