Sign in

unifi-network-application

10.6.109-ls9

The Unifi-network-application software is a powerful, enterprise wireless software engine ideal for high-density client deployments requiring low latency and high uptime performance.

docker pull ghcr.io/linuxserver-playground/unifi-network-application:latest

Quick start · configure#

Pick the optional settings and mods you want, set your paths, ports and values, then copy the result.

Image
Identity

The user the application runs as and its timezone.

Required
Mongodb Username. Only evaluated on first run. Special characters must be url encoded (opens in a new tab).
Mongodb Password. Only evaluated on first run. Special characters must be url encoded (opens in a new tab).
Mongodb Hostname. Only evaluated on first run.
Mongodb Port. Only evaluated on first run.
Mongodb Database Name (stats DB is automatically suffixed with _stat). Only evaluated on first run.
Mongodb authSource (opens in a new tab). For Atlas set to admin. Only evaluated on first run.
Persistent config files
Unifi web admin port
Unifi STUN port
Required for AP discovery
Required for device communication
Optional settings8

Tick what you need; it is added to every output with its value.

Mods

0 for unifi-network-application, 0 universal mods suggested for it, and 13 other universal mods. Ticked mods join one DOCKER_MODS value in the order you tick them.

---
services:
  unifi-network-application:
    image: ghcr.io/linuxserver-playground/unifi-network-application:latest
    container_name: unifi-network-application
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - MONGO_USER=unifi
      - MONGO_PASS=
      - MONGO_HOST=unifi-db
      - MONGO_PORT=27017
      - MONGO_DBNAME=unifi
      - MONGO_AUTHSOURCE=admin
    volumes:
      - /path/to/unifi-network-application/data:/config
    ports:
      - 8443:8443
      - 3478:3478/udp
      - 10001:10001/udp
      - 8080:8080
    restart: unless-stopped

Required settings only. Tick optional settings and mods to add them.

  • Replace the /path/to folders with real folders on your host; they are created if missing.

Install on …

Adding a store to your platform

Version tags#

TagLatest buildBuiltTests
:latestStable releasesbranch main · stable10.6.109-ls9amd64 · arm64–

Architectures#

Pulling :latest picks the right one for your host automatically.

  • x86_64amd64-latest
  • arm64arm64v8-latest

Inside the latest image#

ghcr.io/linuxserver-playground/unifi-network-application:10.6.109-ls9

Explore this build
Base image
ghcr.io/linuxserver-playground/baseimage-ubuntu:resolute
Upstream version
10.6.109
amd64 compressed
295 MB · 11 layers
arm64 compressed
294 MB · 11 layers
amd64 packages
334 · Ubuntu 26.04.1 LTS
arm64 packages
334 · Ubuntu 26.04.1 LTS
Tests
not run
Built
Reason
weekly package check

In the fleet#

Live branches, their latest release, upstream version and next scheduled check.

unifi-network-application on the fleet board

live branchesloading…

Branch → tagLast buildReleasedUpstreamDriftNext checkFlags
main → :latestsuccess
10.6.109
? unknown––

Application setup#

After setup, the web UI is available at https://ip:8443. The application can be configured, or a backup restored, using the first run wizard.

This container requires an external mongodb database instance.

Please note that the ports listed in this readme are not exhaustive and may change upstream, please see the official documentation for the most up-to-date list.

Setting Up Your External Database

Starting with version 8.1 of Unifi Network Application, mongodb 3.6 through 7.0 are supported. Starting with version 9.0 of Unifi Network Application, mongodb 8.0 is also supported.

Make sure you pin your database image version and do not use latest, as mongodb does not support automatic upgrades between major versions.

MongoDB >4.4 on X86_64 Hardware needs a CPU with AVX support. Some lower end Intel CPU models like Celeron and Pentium (before Tiger-Lake) more Details: Advanced Vector Extensions - Wikipedia don’t support AVX, but you can still use MongoDB 4.4.

If you are using the official mongodb container, you can create your user using an init-mongo.sh file with the following contents (do not modify; copy/paste as is):

#!/bin/bash

if which mongosh > /dev/null 2>&1; then
  mongo_init_bin='mongosh'
else
  mongo_init_bin='mongo'
fi
"${mongo_init_bin}" <<EOF
use ${MONGO_AUTHSOURCE}
db.auth("${MONGO_INITDB_ROOT_USERNAME}", "${MONGO_INITDB_ROOT_PASSWORD}")
db.createUser({
  user: "${MONGO_USER}",
  pwd: "${MONGO_PASS}",
  roles: [
    "clusterMonitor",
    { db: "${MONGO_DBNAME}", role: "dbOwner" },
    { db: "${MONGO_DBNAME}_stat", role: "dbOwner" },
    { db: "${MONGO_DBNAME}_audit", role: "dbOwner" },
    { db: "${MONGO_DBNAME}_restore", role: "dbOwner" }
  ]
})
EOF

Mount the sh file into your mongodb container, and make sure to set the env vars below with the same values you supplied to the Unifi container.

For example:

  unifi-db:
    image: docker.io/mongo:<version tag>
    container_name: unifi-db
    environment:
      - MONGO_INITDB_ROOT_USERNAME=root
      - MONGO_INITDB_ROOT_PASSWORD=
      - MONGO_USER=unifi
      - MONGO_PASS=
      - MONGO_DBNAME=unifi
      - MONGO_AUTHSOURCE=admin
    volumes:
      - /path/to/data:/data/db
      - /path/to/init-mongo.sh:/docker-entrypoint-initdb.d/init-mongo.sh:ro
    restart: unless-stopped

Note that the init script method will only work on first run. If you start the Mongodb container without an init script it will generate test data automatically and you will have to manually create your databases, or restart with a clean /data/db volume and an init script mounted.

You can also run the commands directly against the database using either mongo (< 6.0) or mongosh (>= 6.0).

Device Adoption

For Unifi to adopt other devices, e.g. an Access Point, it is required to change the inform IP address. Because Unifi runs inside Docker by default it uses an IP address not accessible by other devices. To change this go to UniFi Devices > Device Updates and Settings > Device SSH Settings, enable Inform Host Override and set the Inform Host to a hostname or IP address accessible by your devices (devices use the inform-endpoint during adoption).

Note that you must use 8080:8080. If you MUST change the port, it must be changed on both sides and manually changed in your system.properties file. Otherwise, devices will initially communicate and then break after.

Please note, Unifi change the location of this option every few releases so if it’s not where it says, search for “Inform” or “Inform Host” in the settings.

In order to manually adopt a device take these steps:

ssh ubnt@$AP-IP
set-inform http://$address:8080/inform

The default device password is ubnt. $address is the IP address of the host you are running this container on and $AP-IP is the Access Point IP address.

When using a Security Gateway (router) it could be that network connected devices are unable to obtain an ip address. This can be fixed by setting “DHCP Gateway IP”, under Settings > Networks > network_name, to a correct (and accessible) ip address.

Strict reverse proxies

This image uses a self-signed certificate by default. This naturally means the scheme is https. If you are using a reverse proxy which validates certificates, you need to disable this check for the container.

Parameters#

Ports#
PortFunctionRequired
8443:8443Unifi web admin portrequired
3478:3478/udpUnifi STUN portrequired
10001:10001/udpRequired for AP discoveryrequired
8080:8080Required for device communicationrequired
1900:1900/udpRequired for Make controller discoverable on L2 network optionoptional
8843:8843Unifi guest portal HTTPS redirect portoptional
8880:8880Unifi guest portal HTTP redirect portoptional
6789:6789For mobile throughput testoptional
5514:5514/udpRemote syslog portoptional
Environment variables#
VariableFunctionRequired
PUID=1000User IDrequired
PGID=1000Group IDrequired
TZ=Etc/UTCTimezonerequired
MONGO_USER=unifiMongodb Username. Only evaluated on first run. Special characters must be url encoded (opens in a new tab).required
MONGO_PASS=Mongodb Password. Only evaluated on first run. Special characters must be url encoded (opens in a new tab).required
MONGO_HOST=unifi-dbMongodb Hostname. Only evaluated on first run.required
MONGO_PORT=27017Mongodb Port. Only evaluated on first run.required
MONGO_DBNAME=unifiMongodb Database Name (stats DB is automatically suffixed with _stat). Only evaluated on first run.required
MONGO_AUTHSOURCE=adminMongodb authSource (opens in a new tab). For Atlas set to admin. Only evaluated on first run.required
MEM_LIMIT=1024Optionally change the Java memory limit (in Megabytes). Set to default to reset to defaultoptional
MEM_STARTUP=1024Optionally change the Java initial/minimum memory (in Megabytes). Set to default to reset to defaultoptional
MONGO_TLS=Mongodb enable TLS (opens in a new tab). Only evaluated on first run.optional
Volumes#
PathFunctionRequired
/configPersistent config filesrequired

Environment variables from files (Docker secrets)#

You can set any environment variable from a file by using a special prepend FILE__.

As an example:

-e FILE__MYVAR=/run/secrets/mysecretvariable

Will set the environment variable MYVAR based on the contents of the /run/secrets/mysecretvariable file.

Umask for running applications#

For all of our images we provide the ability to override the default umask settings for services started within the containers using the optional -e UMASK=022 setting. Keep in mind umask is not chmod it subtracts from permissions based on it’s value it does not add. Please read up here before asking for support.

User / Group Identifiers#

When using volumes (-v flags), permissions issues can arise between the host OS and the container, we avoid this issue by allowing you to specify the user PUID and group PGID.

Ensure any volume directories on the host are owned by the same user you specify and any permissions issues will vanish like magic.

In this instance PUID=1000 and PGID=1000, to find yours use id your_user as below:

id your_user

Example output:

uid=1000(your_user) gid=1000(your_user) groups=1000(your_user)

Updating Info#

Most of our images are static, versioned, and require an image update and container recreation to update the app inside. With some exceptions (noted in the relevant readme.md), we do not recommend or support updating apps inside the container. Please consult the Application Setup section above to see if it is recommended for the image.

Below are the instructions for updating containers:

Via Docker Compose

  • Update images:

    • All images:

      docker-compose pull
    • Single image:

      docker-compose pull unifi-network-application
  • Update containers:

    • All containers:

      docker-compose up -d
    • Single container:

      docker-compose up -d unifi-network-application
  • You can also remove the old dangling images:

    docker image prune

Via Docker Run

  • Update the image:

    docker pull ghcr.io/linuxserver-playground/unifi-network-application:latest
  • Stop the running container:

    docker stop unifi-network-application
  • Delete the container:

    docker rm unifi-network-application
  • Recreate a new container with the same docker run parameters as instructed above (if mapped correctly to a host folder, your /config folder and settings will be preserved)

  • You can also remove the old dangling images:

    docker image prune

Image Update Notifications - Diun (Docker Image Update Notifier)

Tip

We recommend Diun for update notifications. Other tools that automatically update containers unattended are not recommended or supported.

Building locally#

If you want to make local modifications to these images for development purposes or just to customize the logic:

git clone https://github.com/linuxserver-playground/docker-unifi-network-application.git
cd docker-unifi-network-application
docker build \
  --no-cache \
  --pull \
  -t ghcr.io/linuxserver-playground/unifi-network-application:latest .

The ARM variants can be built on x86_64 hardware and vice versa using ghcr.io/linuxserver/qemu-static

docker run --rm --privileged ghcr.io/linuxserver/qemu-static --reset

Once registered you can define the dockerfile to use with -f Dockerfile.aarch64.

Every push builds and tests the image with the shared workflow in linuxserver-playground/workflows; every build’s tests, screenshots and package changes are on the image’s builds on the website.

Builds#

The newest five builds per branch, each with its CI report; 4 older releases are on GitHub, listed below.

TagBuiltReasonChangeResultSize
10.6.109-ls9main · d10d2238weekly package checkbasesuccess295 MB amd64294 MB arm64
10.6.109-ls8main · afafe1cfweekly package checkpackagessuccess304 MB amd64302 MB arm64
10.6.109-ls7main · 3824c04bweekly package checkbasesuccess304 MB amd64302 MB arm64
10.6.109-ls6main · 8e556d1eweekly package checkbasesuccess298 MB amd64296 MB arm64
10.6.109-ls5main · 03a07ebcweekly package checkbasesuccess295 MB amd64294 MB arm64
Older releases4Release, run record and run on GitHub

Mods#

Add a mod with DOCKER_MODS=<image>; separate several with |.

All mods for unifi-network-application

No mod targets unifi-network-application specifically; the 13 universal mods work with every image.

Reverse proxy#

unifi-network-application listens on https://unifi-network-application:8443.

What you named the unifi-network-application container; SWAG resolves it on the shared network.

Uncomments the matching include lines; API locations stay open so client apps keep working.

  • Save as /config/nginx/proxy-confs/unifi-network-application.subdomain.conf in SWAG (drop the .sample) and restart SWAG.
  • Your DNS needs a record for unifi-network-application.yourdomain.com (a CNAME to the domain, or a wildcard), and SWAG's SUBDOMAINS must cover it.
  • The unifi-network-application container and SWAG must share a user-defined Docker network so the name resolves.
## Version 2026/11/26
# make sure that your unifi-network-application container is named unifi-network-application
# make sure that your dns has a cname set for unifi-network-application

server {
    listen 443 ssl;
#    listen 443 quic;
    listen [::]:443 ssl;
#    listen [::]:443 quic;

    server_name unifi-network-application.*;

    include /config/nginx/ssl.conf;

    client_max_body_size 0;

    # enable for ldap auth (requires ldap-location.conf in the location block)
    #include /config/nginx/ldap-server.conf;

    # enable for Authelia (requires authelia-location.conf in the location block)
    #include /config/nginx/authelia-server.conf;

    # enable for Authentik (requires authentik-location.conf in the location block)
    #include /config/nginx/authentik-server.conf;

    # enable for Tinyauth (requires tinyauth-location.conf in the location block)
    #include /config/nginx/tinyauth-server.conf;

    location / {
        # enable the next two lines for http auth
        #auth_basic "Restricted";
        #auth_basic_user_file /config/nginx/.htpasswd;

        # enable for ldap auth (requires ldap-server.conf in the server block)
        #include /config/nginx/ldap-location.conf;

        # enable for Authelia (requires authelia-server.conf in the server block)
        #include /config/nginx/authelia-location.conf;

        # enable for Authentik (requires authentik-server.conf in the server block)
        #include /config/nginx/authentik-location.conf;

        # enable for Tinyauth (requires tinyauth-server.conf in the server block)
        #include /config/nginx/tinyauth-location.conf;

        include /config/nginx/proxy.conf;
        include /config/nginx/resolver.conf;
        set $upstream_app unifi-network-application;
        set $upstream_port 8443;
        set $upstream_proto https;
        proxy_pass $upstream_proto://$upstream_app:$upstream_port;

    }
}

Default sample.

Source: linuxserver-playground.github.io/hub/api/v1/catalog/unifi-network-application/proxy.json

Changelog#

  1. Rebase to Ubuntu Resolute.

  2. Bump JRE to v25 to support v10.3+ of the application.

  3. Switch to using FW API endpoint for version checks.

  4. Update sample init-mongo.sh for compatibility with 9.1.120 (only affects new installs).

  5. Revert JRE to 17.

  6. Bump JRE to 21.

  7. Important: The mongodb init instructions have been updated to enable auth (RBAC (opens in a new tab)). We have been notified that if RBAC is not enabled, the official mongodb container allows remote access to the db contents over port 27017 without credentials. If you set up the mongodb container with the old instructions we provided, you should not map or expose port 27017. If you would like to enable auth, the easiest way is to create new instances of both unifi and mongodb with the new instructions and restore unifi from a backup.

  8. Rebase to Ubuntu Noble.

3 earlier entries
  1. Install from zip package instead of deb.
  2. Add environment variables for TLS and authSource to support Atlas and new MongoDB versions.
  3. Initial release.

Support#

Questions about running unifi-network-application? Start with the documentation and the community; open an issue for bugs.

  • Shell access whilst the container is running:

    docker exec -it unifi-network-application /bin/bash
  • To monitor the logs of the container in realtime:

    docker logs -f unifi-network-application
  • Container version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' unifi-network-application
  • Image version number:

    docker inspect -f '{{ index .Config.Labels "build_version" }}' ghcr.io/linuxserver-playground/unifi-network-application:latest

Community project

Improve unifi-network-application

This image is kept up by volunteers, and you can be one of them. You don't need to know how the pipeline works: point an AI agent at the harness and describe what you want. It reproduces the problem in your Docker, tests the change and drafts the pull request for you to check.

Ask your agent

  • Something is wrong with the unifi-network-application image: <what you saw>. Reproduce it, fix it and draft the PR.
  • Add <package> to the unifi-network-application image, test it and draft the PR.
  • Make a mod for unifi-network-application that <what you need>, and test it.

Contributing an image Every way to help Get the harness (opens in a new tab)

Related

Browse all

adguardhome-sync

v0.10.1-ls9

Adguardhome-sync is a tool to synchronize AdGuardHome config to replica instances.

0 GitHub starsalpinearm64

ddclient

v4.0.0-ls5

Ddclient is a Perl client used to update dynamic DNS entries for accounts on Dynamic DNS Network Service Provider. It was originally written by Paul Burry and is now mostly by wimpunk. It has the capability to update more than just dyndns and it can fetch your WAN-ipaddress in a few different ways.

0 GitHub starsalpinearm64

duckdns

8d26a150-ls8

Duckdns is a free service which will point a DNS (sub domains of duckdns.org) to an IP of your choice. The service is completely free, and doesn't require reactivation or forum posts to maintain its existence.

0 GitHub starsalpinearm64

fail2ban

1.1.0-r2-ls10

Fail2ban is a daemon to ban hosts that cause multiple authentication errors.

0 GitHub starsalpinearm64