StemboltHQ/docker-unifi-controller

Name: docker-unifi-controller

Owner: Stembolt

Description: unifi controller runnning in docker

Forked from: rednut/docker-unifi-controller

Created: 2016-07-16 22:18:44.0

Updated: 2016-07-16 22:18:45.0

Pushed: 2016-02-27 02:33:21.0

Homepage: null

Size: 14

Language: Makefile

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

dockerisation of unifi controller

Warning, this may eat your data, nibble your wifi or cause the silver foil lining your hat to combust in a shower of sparks like metal in a microwave.

acquisition of container image

For a quick start use the docker hub method, for access to the source, built it yourself.

pull from docker hub
docker pull rednut/unifi-controller

(see instructions below for running it)

building docker image
clone https://github.com/rednut/docker-unifi-controller.git 
ocker-unifi-controller

run the container: launching the unifi controller daemon
docker run -d \
        -p 8080:8080 -p 8443:8443 -p 8880:8880 -p 37117:27117 \
        -v /srv/data/apps/docker/unifi/data:/usr/lib/unifi/data \
        --name unifi rednut/unifi-controller
notes on the make / build of the container

The Makefile will provision the docker container image from the Dockerfile which will provision the image with upstream ubuntu:latest and include all the required dependencies to run the the unifi controller.

The unifi controller repo will provide the .debs. The package requires mongodb, so if we dont include 10gen's official repo it will use stock debian mongo instead (current state)

The supervisor.conf (example below) is provided to configure supervisord which is then used to launch the unifi contoller daemon:

ervisord]
emon=true

gram:unify]
and=nice ionice -c2 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java -Xmx256M -jar /usr/lib/unifi/lib/ace.jar start
ile=/var/run/unifi/unifi.pid
ut_logfile=/var/log/supervisor/%(program_name)s.log
rr_logfile=/var/log/supervisor/%(program_name)s.log
orestart=true
run the container: launching the unifi controller daemon
volumes for persistent data

You can mount a local volume path into the container at /usr/lib/unifi/data by supplying to docker the -v argument like -v <local_path>:<container_path> or -v /srv/data/apps/docker/unifi/data:/usr/lib/unifi/data

ports

To connunicate with the unifi controller you mapo various ports, eg:

command to run the unifi controller daemon

To launch a container using the image created earlier:

docker run -d \
        -p 8080:8080 -p 8443:8443 -p 8880:8880 -p 37117:27117 \
        -v /srv/data/apps/docker/unifi/data:/usr/lib/unifi/data \
        --name unifi rednut/unifi-controller
management of container

see Makefile…

so its usually better, after running the container to just stop/start it instead:

Changelog


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.