Docker image for Ubiquiti Unifi Controller
docker pull mgcrea/unifi:5
Use docker-compose to start the service
docker-compose up -d
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
mca-cli
set-inform http://${CONTROLLER_LOCAL_IP}:8080/inform
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;