Run 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).
- /unifi/var - Directory of all configuration data and sites
services:
unifi:
image: "11notes/unifi:8.5.6"
container_name: "unifi"
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 docker |
uid |
1000 | user id 1000 |
gid |
1000 | group id 1000 |
home |
/unifi | home directory of user docker |
Parameter | Value | Default |
---|---|---|
TZ |
Time Zone | |
DEBUG |
Show debug information |
- Use a reverse proxy like Traefik, Nginx to terminate TLS with a valid certificate
- Use Let’s Encrypt certificates to protect your SSL endpoints
- 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 new version. Check the changelog for breaking changes. You can find all my repositories on github.