Unifi Controller (DB included)
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).
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.
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? | ✅ | ❌ |
- /unifi/var - Directory of all configuration data and sites
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"
Parameter | Value | Description |
---|---|---|
user |
docker | user name |
uid |
1000 | user identifier |
gid |
1000 | group identifier |
home |
/unifi | home directory of user docker |
Parameter | Value | Default |
---|---|---|
TZ |
Time Zone | |
DEBUG |
Will activate debug option for container image and app (if available) |
These are the main tags for the image. There is also a tag for each commit and its shorthand sha256 value.
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.
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.
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
- 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 sitesconfig.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 checkinggrep analytics /tmp/system.cfg
, the output should readdisabled
. Make sure to also DNS block the FQDNtrace.svc.ui.com
in your DNS blocker.
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)