Installing Unifi Network Controller

Installing Unifi Network Controller Using Docker and Ubuntu


Usually, the Unifi Network Controller is installed on your personal computer, but, if you want to install it in a virtual machine, you can do that.


Here we're using a Virtual Machine Ubuntu 20.04 for this, running inside a Hypervisor ProxMox 7.4.


creating the directory

mkdir -p /opt/unifi/controller/docker
mkdir -p /opt/unifi/controller/data/sites/default
cd /opt/unifi/controller/docker

create a docker-compose file

vim docker-compose.yml

insert the content bellow

version: "2.1"
    container_name: unifi-controller
      - PUID=1000
      - PGID=1000
      - /opt/unifi-controller/config:/config
      - 8443:8443
      - 3478:3478/udp
      - 10001:10001/udp
      - 8080:8080
    restart: unless-stopped

in my case, since I'm using USG Router with two WAN connections, and I want to redirect ports to the WAN2, I'll create a file /opt/unifi/controller/data/sites/default/config.gateway.json with the content bellow

	"port-forward": {
		"wan-interface": "eth2"

This will set the eth2 as the default interface for port-forward, usually it's the eth0. Now le'ts spin up the container.

docker-compose up -d

and now you can access the dashboard from your browser


[s] Guto

Did you like our content?

We have a lot to share; visit our site!

Our fediverse services ;)

Chat and video? We have it!

Translation tools

Video Platform Frontends

Text Editors

You can also visit our hacking space!

Follow our founder!

Follow the status of our tools

Do you want to support us? You can!

See you!