Giter Site home page Giter Site logo

unifi's Introduction

Ubiquiti Networks Unifi Controller

Docker Repository on Quay

Usage

This is a repo for building and running a Fedora based container for the Ubiquiti Networks Unifi Controller with Podman.

Prerequisites

$ sudo dnf install podman git -y
$ sudo adduser -r -s /sbin/nologin unifi 
$ sudo mkdir -p /opt/unifi/{data,logs,run}
$ sudo chown -R unifi. /opt/unifi
$ sudo chcon -Rt svirt_sandbox_file_t /opt/unifi/
$ sudo firewall-cmd --zone=$(firewall-cmd --get-default-zone) --add-port=3478/udp --add-port=8080/tcp --add-port=8443/tcp --add-port=8843/tcp --add-port=10001/udp
$ sudo firewall-cmd --runtime-to-permanent

Disable firewalld until this bug gets resolved.

$ sudo systemctl stop firewalld
$ sudo systemctl disable firewalld

Build From GitHub

sudo podman build --build-arg UNIFI_VERSION=5.8.25-34502471b9 \
    --build-arg UNIFI_UID=$(id -u unifi) \
    -t unifi:5.8.25-d5a5bbfda4 git://github.com/jdoss/unifi

Build Locally

$ git clone https://github.com/jdoss/unifi
$ cd unifi
$ sudo podman build --build-arg UNIFI_VERSION=5.8.25-34502471b9 \
    --build-arg UNIFI_UID=$(id -u unifi) \
    -t unifi:5.8.25-34502471b9 . 

Run the Ubiquiti Networks Unifi Controller

$ sudo podman run --rm --cap-drop ALL -e UNIFI_UID=$(id -u unifi) \
  -e UNIFI_VERSION=5.8.25-34502471b9 \
  -e JVM_MAX_HEAP_SIZE=1024m \
  -e TZ='America/Chicago' \
  -p 3478:3478/udp -p 8080:8080/tcp -p 8443:8443/tcp -p 8843:8843/tcp -p 10001:10001/udp \
  -v /opt/unifi/data:/opt/unifi/data:Z \
  -v /opt/unifi/logs:/opt/unifi/logs:Z \
  -v /opt/unifi/run:/opt/unifi/run:Z \
  --name unifi localhost/unifi:5.8.25-d5a5bbfda4

License

The MIT License

Copyright (c) 2018 Joe Doss

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

unifi's People

Contributors

jdoss avatar

Watchers

Aaron Russo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.