Skip to content

Latest commit

 

History

History
67 lines (48 loc) · 1.26 KB

README.md

File metadata and controls

67 lines (48 loc) · 1.26 KB

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;