Star 历史趋势
数据来源: GitHub API · 生成自 Stargazers.cn
README.md

UniFi OS Server

Run UniFi OS Server directly in Docker or Kubernetes.

The UniFi OS Server is the new standard for self-hosting UniFi, replacing the legacy UniFi Network Server. While the Network Server provided basic hosting functionality, it lacked support for key UniFi OS features like Organizations, IdP Integration, or Site Magic SD-WAN. With a fully unified operating system, UniFi OS Server now delivers the same management experience as UniFi-native–including CloudKeys, Cloud Gateways, and Official UniFi Hosting–and is fully compatible with Site Manager for centralized, multi-site control.

https://help.ui.com/hc/en-us/articles/34210126298775-Self-Hosting-UniFi

Installation

Docker Compose

See docker-compose.yaml

Kubernetes

See kubernetes

Deployment example uses ingress-nginx for the ingress and longhorn for storage.

Your ingress controller must be modified to accept extra ports. For example, ingress-nginx Helm values:

tcp:
  5005: "unifi/unifi-os-server-rtp-svc:5005" # Optional
  9543: "unifi/unifi-os-server-id-hub-svc:9543" # Optional
  6789: "unifi/unifi-os-server-mobile-speedtest-svc:6789" # Optional
  8080: "unifi/unifi-os-server-communication-svc:8080"
  8444: "unifi/unifi-os-server-hotspot-secured-svc:8444" # Optional
  28082: "unifi/unifi-os-server-support-files:28082" # Optional
  5671: "unifi/unifi-os-server-aqmps-svc:5671" # Optional
  8880: "unifi/unifi-os-server-hotspot-redirect-0-svc:8880" # Optional
  8881: "unifi/unifi-os-server-hotspot-redirect-1-svc:8881" # Optional
  8882: "unifi/unifi-os-server-hotspot-redirect-2-svc:8882" # Optional
udp:
  3478: "unifi/unifi-os-server-stun-svc:3478"
  5514: "unifi/unifi-os-server-syslog-svc:5514" # Optional
  10003: "unifi/unifi-os-server-discovery-svc:10003"

Parameters

Environment Variables

EnvironmentDescription
UOS_SYSTEM_IPHostname or IP for UniFi OS Server
HARDWARE_PLATFORMManually set hardware platform

UOS_SYSTEM_IP

Set UniFi OS Server hostname (recommended) or IP address for inform. To adopt device:

  1. SSH into device with username/password: ubnt/ubnt

  2. Set inform address:

    set-inform http://$UOS_SYSTEM_IP:8080/inform

HARDWARE_PLATFORM

Overrides your detected hardware platform. Accepted values are: synology.

Ports

ProtocolPortDirectionUsage
TCP11443IngressUniFi OS Server GUI/API
TCP5005IngressRTP (Real-time Transport Protocol) control protocol
TCP9543IngressUniFi Identity Hub
TCP6789IngressUniFi mobile speed test
TCP8080IngressDevice and application communication
TCP8444IngressSecure Portal for Hotspot
UDP3478BothSTUN for device adoption and communication (also required for Remote Management)
UDP5514IngressRemote syslog capture
UDP10003IngressDevice discovery during adoption
TCP28082IngressDevice support files download
TCP5671IngressAQMPS
TCP8880IngressHotspot portal redirection (HTTP)
TCP8881IngressHotspot portal redirection (HTTP)
TCP8882IngressHotspot portal redirection (HTTP)

Frequently Asked Questions

What is the difference between images?

The uosserver image is provided by UniFi, extracted from the installation binary. The unifi-os-server image provides better compatibility for Docker and Kubernetes with directory fixes and configuration through environment variables.

Why does the container need specific settings for cgroup and tmpfs?

The underlying structure of UniFi OS Server runs every component as systemd services which requires access to the host cgroup.

关于 About

Run UniFi OS Server in Docker or Kubernetes
unifiunifi-controllerunifi-networkunifi-os

语言 Languages

Shell91.3%
Dockerfile8.7%

提交活跃度 Commit Activity

代码提交热力图
过去 52 周的开发活跃度
185
Total Commits
峰值: 31次/周
Less
More

核心贡献者 Contributors