Notes on life and tech by Abraham Neben

Setting up Unifi Controller in a docker container on a Raspberry Pi for my home network

Preliminaries

The network topology is as follows:

Fiber optic modem <=> TP Link Router <=> TP Link PoE switch <=> 2 Ubiquiti wireless APs

Hard-wire the Pi to the switch, and assign it a static IP address from the router.

Setup UniFi Controller in a docker container on raspberry pi

# Based on instructions at https://hub.docker.com/r/jacobalberty/unifi

# set up directories
mkdir -p unifi/data
mkdir -p unifi/log

# install unifi container
sudo docker pull jacobalberty/unifi

# run unifi container
sudo docker run -d --init \
--restart=unless-stopped \
-p 8080:8080 -p 8443:8443 -p 3478:3478/udp \
-v ~/unifi:/unifi \
--user unifi \
--name unifi \
jacobalberty/unifi

# confirm that unifi is running
sudo docker ps

Wifi performance

Misc Notes

Note if running the docker UniFi container on a mac, go to https://host.docker.internal:8443/ in the browser (make sure 127.0.0.1   host.docker.internal is in /etc/hosts)

Posted by Abraham