Public Repository

Last pushed: a year ago
Short Description
Ubiquiti Networks Unifi Controller using host networking.
Full Description

NOTE: This is an outdated version.

Overview

Places the Unifi Controller from Ubiquiti Networks into a Docker container. Deploying the container on the host network allows the Unifi controller to receive and interact with other devices on the same network segment. (Layer 2 network broadcast.)

I'm not affiliated with Ubiquiti networks.

Example Deployment

docker run \
--detach \
--net host \
--restart always \
--name unifi-controller \
--volume /opt/srv/unifi:/UniFi/data/db \
kjpratt/unifi:5.0.7

The above will make the Controller available on the Docker host network at port 8443.

https://<docker host>:8443/

In addition, the underlying Mongo DB will be placed on the host filesystem at

/opt/srv/unifi

This allows future upgrades to use the existing bundled database.

Comments

Please comment on the usefulness of this image. Let me know if you encounter any problems. Star this project if you like it!

Dockerfile

FROM java:8
MAINTAINER Ken Pratt <kenpratt@comcast.net>

# This container is designed to run on the host network so that layer 2 networking is available.

ADD https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-ubuntu1604-3.2.7.tgz /tmp/
ADD http://dl.ubnt.com/unifi/5.0.7/UniFi.unix.zip /tmp/

RUN unzip /tmp/UniFi.unix.zip && \
    tar xzf /tmp/mongodb-linux-x86_64-ubuntu1604-3.2.7.tgz && \
    rm UniFi/bin/mongod && \
    ln -s /mongodb-linux-x86_64-ubuntu1604-3.2.7/bin/mongod /UniFi/bin/mongod && \
    rm /tmp/mongodb-linux-x86_64-ubuntu1604-3.2.7.tgz /tmp/UniFi.unix.zip

VOLUME ["/UniFi/data/db"]

ENTRYPOINT [ "java", "-jar", "UniFi/lib/ace.jar" ]
CMD [ "start" ]
Docker Pull Command
Owner
kjpratt

Comments (0)