All Projects → rednut → Docker Unifi Controller

rednut / Docker Unifi Controller

unifi controller runnning in docker

Labels

Projects that are alternatives of or similar to Docker Unifi Controller

Secure Boot
UEFI SecureBoot for ArchLinux
Stars: ✭ 48 (-9.43%)
Mutual labels:  makefile
Android device motorola osprey
Stars: ✭ 50 (-5.66%)
Mutual labels:  makefile
So Ontologies
Collect of SO Ontologies
Stars: ✭ 51 (-3.77%)
Mutual labels:  makefile
Device xiaomi grus Twrp
TWRP device tree for Xiaomi Mi 9 SE(treble)
Stars: ✭ 49 (-7.55%)
Mutual labels:  makefile
Draft Ietf Doh Dns Over Https
Discussion of draft-ietf-doh-dns-over-https in the IETF's DOH Working Group
Stars: ✭ 49 (-7.55%)
Mutual labels:  makefile
Stouts.grafana
Ansible role which Installs and setups Grafana metrics dashboard
Stars: ✭ 50 (-5.66%)
Mutual labels:  makefile
Rlp
An Example of Using Literate Programming for R Package Development
Stars: ✭ 47 (-11.32%)
Mutual labels:  makefile
Docker Janus
Debian based docker image for https://github.com/meetecho/janus-gateway
Stars: ✭ 52 (-1.89%)
Mutual labels:  makefile
Mendeley Rpm
Mendeley packaged for Fedora.
Stars: ✭ 49 (-7.55%)
Mutual labels:  makefile
Samples Rmarkdown Metropolis
RMarkdown with Metropolis/Mtheme for Beamer
Stars: ✭ 51 (-3.77%)
Mutual labels:  makefile
Largest Contentful Paint
Specification for the LargestContentfulPaint API
Stars: ✭ 49 (-7.55%)
Mutual labels:  makefile
Openwrt Extra
extra openwrt package feed (samba 4.12.x)
Stars: ✭ 49 (-7.55%)
Mutual labels:  makefile
Idris Blink
A simple Idris program to blink the LED on an Arduino
Stars: ✭ 50 (-5.66%)
Mutual labels:  makefile
Booktree
UPDATE: I've decided that this project is not useful enough, Git for local editing is not the bottleneck. We must focus on ranking algorithms instead: https://github.com/cirosantilli/write-free-science-books-to-get-famous-website
Stars: ✭ 48 (-9.43%)
Mutual labels:  makefile
Unifi Poller
Application: Collect ALL UniFi Controller, Site, Device & Client Data - Export to InfluxDB or Prometheus
Stars: ✭ 1,050 (+1881.13%)
Mutual labels:  makefile
Tgir
Official repository for Thank Goodness It's RabbitMQ (TGIR)!
Stars: ✭ 48 (-9.43%)
Mutual labels:  makefile
Webfsd
A simple HTTP server for mostly static content written in C
Stars: ✭ 50 (-5.66%)
Mutual labels:  makefile
Antelope contrib
Contributed code for the Antelope Environmental Monitoring System from BRTT, Inc. (http://www.brtt.com)
Stars: ✭ 52 (-1.89%)
Mutual labels:  makefile
Helm Vsts Agent
Kubernetes Helm Chart for VSTS agent pool
Stars: ✭ 52 (-1.89%)
Mutual labels:  makefile
Chxcode
Changes the current Xcode
Stars: ✭ 51 (-3.77%)
Mutual labels:  makefile

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

git clone https://github.com/rednut/docker-unifi-controller.git 
cd docker-unifi-controller
make

run the container: launching 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

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:

[supervisord]
nodaemon=true

[program:unify]
command=nice ionice -c2 /usr/lib/jvm/java-6-openjdk-amd64/jre/bin/java -Xmx256M -jar /usr/lib/unifi/lib/ace.jar start
pidfile=/var/run/unifi/unifi.pid
stdout_logfile=/var/log/supervisor/%(program_name)s.log
stderr_logfile=/var/log/supervisor/%(program_name)s.log
#autorestart=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:

  • 8080: non tls web ui
  • 8443: tls web ui
  • 8880: guest login ui
  • 27117: mongo

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...

  • check the container is runing: docker ps

  • check logs from container: docker logs unifi

  • show process: docker top unifi

  • kill the container ie stop process and stop container: docker kill unifi

  • remove named conatiner (so you can re-run it): docker rm unifi

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

  • pause / unpause aka suspend running cotainer:

    docker pause/unpause unifi

    docker restart unifi

    docker stop/start unifi

    docker kill unifi

Changelog

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].