8000 GitHub - 11notes/docker-unifi: Unifi Controller (DB included)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

11notes/docker-unifi

Repository files navigation

banner

UNIFI

5pxsize5pxversion5pxpulls5px5pxswiss_made

Unifi Controller (DB included)

SYNOPSIS 📖

What can I do with this? This image will provide you a rock solid1 Unifi controller with included MongoDB (no separate image needed, since its EOL anyway).

UNIQUE VALUE PROPOSITION 💶

Why should I run this image and not the other image(s) that already exist? Good question! All the other images on the market that do exactly the same don’t do or offer these options:

Important

  • This image runs as 1000:1000 by default, most other images run everything as root
  • This image is created via a secure, pinned CI/CD process and immune to upstream attacks, most other images have upstream dependencies that can be exploited
  • This image contains a proper health check that verifies the app is actually working, most other images have either no health check or only check if a port is open or ping works
  • This image has an auto update feature that will automatically build the latest version if released, most other image providers do this too slow

If you value security, simplicity and the ability to interact with the maintainer and developer of an image. Using my images is a great start in that direction.

COMPARISON 🏁

Below you find a comparison between this image and the most used or original one.

image 11notes/unifi:9.1.120 linuxserver/unifi-network-application:9.1.120
image size on disk 1.28GB no image found (provider too slow ...)
process UID/GID 1000/1000 ?/?
distroless?
rootless?

VOLUMES 📁

  • /unifi/var - Directory of all configuration data and sites

COMPOSE ✂️

services:
  unifi:
    image: "11notes/unifi:9.1.120"
    environment:
      TZ: "Europe/Zurich"
    volumes:
      - "var:/unifi/var"
    networks:
      macvlan:
        ipv4_address: 10.255.255.1
    restart: always

volumes:
  var:
  
networks:
  macvlan:
    driver: "macvlan"
    driver_opts:
      parent: "eth0"
    ipam:
      config:
        - subnet: "10.255.255.0/24"
          gateway: "10.255.255.254"

DEFAULT SETTINGS 🗃️

Parameter Value Description
user docker user name
uid 1000 user identifier
gid 1000 group identifier
home /unifi home directory of user docker

ENVIRONMENT 📝

Parameter Value Default
TZ Time Zone
DEBUG Will activate debug option for container image and app (if available)

MAIN TAGS 🏷️

These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.

There is no latest tag, what am I supposed to do about updates?

It is of my opinion that the :latest tag is super dangerous. Many times, I’ve introduced breaking changes to my images. This would have messed up everything for some people. If you don’t want to change the tag to the latest semver, simply use the short versions of semver. Instead of using :9.1.120 you can use :9 or :9.1. Since on each new version these tags are updated to the latest version of the software, using them is identical to using :latest but at least fixed to a major or minor version.

REGISTRIES ☁️

docker pull 11notes/unifi:9.1.120
docker pull ghcr.io/11notes/unifi:9.1.120
docker pull quay.io/11notes/unifi:9.1.120

${{ title_unraid }} This image supports unraid by default. Simply add -unraid to any tag and the image will run as 99:100 instead of 1000:1000 causing no issues on unraid. Enjoy.

SOURCE 💾

PARENT IMAGE 🏛️

BUILT WITH 🧰

GENERAL TIPS 📌

Tip

  • Use a reverse proxy like Traefik, Nginx, HAproxy to terminate TLS and to protect your endpoints
  • Use Let’s Encrypt DNS-01 challenge to obtain valid SSL certificates for your services

DISCLAIMERS

  • 1 This image will automatically disable anonymous telemetry collected by Ubiquiti by adding a flag (config.system_cfg.1=system.analytics.anonymous=disabled) to each sites config.properties. You will still have to disable telemetry in the global settings too, to disable all telemetry. You can check your telemetry status by SSH’ing into an access point and checking grep analytics /tmp/system.cfg, the output should read disabled. Make sure to also DNS block the FQDN trace.svc.ui.com in your DNS blocker.

ElevenNotes™️

This image is provided to you at your own risk. Always make backups before updating an image to a different version. Check the releases for breaking changes. If you have any problems with using this image simply raise an issue, thanks. If you have a question or inputs please create a new discussion instead of an issue. You can find all my other repositories on github.

created 01.05.2025, 10:56:07 (CET)

0