Deploys UniFi OS Server in a Podman container on Debian.
- Debian 12 or 13
- Root access
- Internet access
chmod +x install-unifi.sh
sudo ./install-unifi.shThe script will:
- Install Podman
- Create required directories under
/opt/unifi-os-server - Pull the container image
- Start the container
https://<server-ip>:11443
Complete setup via the web UI.
chmod +x update-unifi.sh
sudo ./update-unifi.shPulls the latest image, replaces the running container, and leaves all data intact. Does not reinstall Podman or recreate directories.
/opt/unifi-os-server/
├── data/ # UniFi application data
├── persistent/ # Persistent config
├── srv/
├── var-lib-mongodb/ # MongoDB data
├── var-lib-unifi/ # UniFi library data
├── var-log/ # Logs
└── etc-rabbitmq-ssl/ # RabbitMQ SSL certs
| Port | Protocol | Purpose |
|---|---|---|
| 11443 | TCP | Web UI (HTTPS) |
| 8443 | TCP | UniFi HTTPS |
| 8080 | TCP | Device inform |
| 8880 | TCP | HTTP portal redirect |
| 8881 | TCP | HTTPS portal |
| 8882 | TCP | HTTPS portal alt |
| 8444 | TCP | Portal HTTPS |
| 9543 | TCP | UniFi Talk |
| 6789 | TCP | Speed test |
| 5671 | TCP | MQTT (TLS) |
| 5005 | TCP | Remote debug |
| 11084 | TCP | UniFi Talk TURN |
| 3478 | UDP | STUN |
| 5514 | UDP | Syslog |
| 10003 | UDP | Throughput |
| Command | Purpose |
|---|---|
podman ps |
Running containers |
podman ps -a |
All containers |
podman logs unifi-os-server |
View logs |
podman restart unifi-os-server |
Restart |
podman stop unifi-os-server |
Stop |
The container runs with --restart=always and will restart automatically after a reboot if Podman's restart policy is honoured by the init system.
For explicit systemd management:
podman generate systemd --name unifi-os-server --files --new
mv container-unifi-os-server.service /etc/systemd/system/
systemctl daemon-reload
systemctl enable --now container-unifi-os-server- Do not install the
unifiapt package on Debian 12/13 — it conflicts - MongoDB runs inside the container; no host MongoDB needed
- Host firewall must allow the ports listed above
Container not running
podman ps -a
podman logs unifi-os-serverCheck for port conflicts
ss -tulnp | grep 11443