Unifi: Difference between revisions
Brian Wilson (talk | contribs) mNo edit summary |
Brian Wilson (talk | contribs) |
||
Line 4: | Line 4: | ||
== Dockerized == | == Dockerized == | ||
2019-02-20 removed systemctl files and changed to using 'restart'. Moved to the volumes documented below, used to use system files in /var/log/unifi and /home/unifi. Removed port 8080 | |||
2018-03-21 built a systemctl file for it | 2018-03-21 built a systemctl file for it | ||
Line 9: | Line 11: | ||
2017-08-16 it's now dockerized. | 2017-08-16 it's now dockerized. | ||
I | Originally I ran Unifi locally so I just reused its data and log folders. Today I copied them into Docker volumes instead. | ||
Here is how I copied the log files into the volume | |||
cd /var/log/unifi | |||
docker run -v unifi_data:/data busybox helper | |||
docker cp . helper:/data | |||
docker stop helper | |||
docker rm helper | |||
When I started it up it migrated my old database to the 5.5 version of UniFi. | When I started it up it migrated my old database to the 5.5 version of UniFi. | ||
It was able to successfully detect my UniFi AP and updated its IP address to my new | It was able to successfully detect my UniFi AP and updated its IP address to my new | ||
Line 16: | Line 26: | ||
See https://hub.docker.com/r/jacobalberty/unifi/ | See https://hub.docker.com/r/jacobalberty/unifi/ | ||
docker run -d --dns=192.168.123.2 | docker volume create unifi_data | ||
-v | docker volume create unifi_logs | ||
docker run -d --dns=192.168.123.2 -p 8443:8443 -p 3478:3478 -p 10001:10001 -e TZ='Americas/Los_Angeles' \ | |||
-v unifi_data:/var/lib/unifi -v unifi_logs:/var/log/unifi --name=unifi jacobalberty/unifi | |||
docker update --restart always unifi | |||
== Troubleshooting == | == Troubleshooting == |
Revision as of 23:17, 20 February 2019
I use a Ubiquiti WAP and it talks Unifi. I run the controller here: https://bellman:8443/ and I have a page on its feature Presence detection
Dockerized
2019-02-20 removed systemctl files and changed to using 'restart'. Moved to the volumes documented below, used to use system files in /var/log/unifi and /home/unifi. Removed port 8080
2018-03-21 built a systemctl file for it
2017-08-16 it's now dockerized.
Originally I ran Unifi locally so I just reused its data and log folders. Today I copied them into Docker volumes instead.
Here is how I copied the log files into the volume
cd /var/log/unifi docker run -v unifi_data:/data busybox helper docker cp . helper:/data docker stop helper docker rm helper
When I started it up it migrated my old database to the 5.5 version of UniFi. It was able to successfully detect my UniFi AP and updated its IP address to my new address scheme and then provisioned it. EXCELLENT.
See https://hub.docker.com/r/jacobalberty/unifi/
docker volume create unifi_data docker volume create unifi_logs
docker run -d --dns=192.168.123.2 -p 8443:8443 -p 3478:3478 -p 10001:10001 -e TZ='Americas/Los_Angeles' \ -v unifi_data:/var/lib/unifi -v unifi_logs:/var/log/unifi --name=unifi jacobalberty/unifi
docker update --restart always unifi
Troubleshooting
Watch the daemon.log on Bellman and you can watch devices try to associate with the WAP.