Docker image for Ubiquiti Unifi 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 Docker Pulls Docker Latest

Docker image for Ubiquiti Unifi Controller

Install

docker pull mgcrea/unifi:5

Quickstart

Use docker-compose to start the service

docker-compose up -d

Compose

version: '3'
services:
  unifi:
    image: mgcrea/unifi:5
    container_name: unifi
    environment:
      - TZ=Europe/Paris
    network_mode: "host"
    privileged: true
    volumes:
      - ./data/data:/usr/lib/unifi/data
      - ./data/logs:/usr/lib/unifi/logs
      - ./data/work:/usr/lib/unifi/work
    ports:
      - "8880:8880/tcp"
      - "8443:8443/tcp"
      - "8080:8080/tcp"
      - "8843:8843/tcp"
      - "3478:3478/udp"
    restart: always

SSH Adoption

mca-cli
set-inform http://${CONTROLLER_LOCAL_IP}:8080/inform

Debug

Create and inspect a new instance

docker-compose run unifi /bin/bash

Inspect a running instance

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