docker-unifi-rpi icon indicating copy to clipboard operation
docker-unifi-rpi copied to clipboard

Unable to setup new network controller

Open mmaxbar opened this issue 2 years ago • 3 comments

Trying to set up 7.2.92 from scratch, following your directions from the wiki to the word. At the end of the setup process after finishing entering the user and password for the local account, timezone etc. , the web interface of the unifi controller switches to https, after that i cannot make any connection to the unifi controller any more.

Commenting out all the port forwarding in the compose file and defining network-mode = "host" solves it, but there seems to be an issue.

PS: i am running Ubuntu Server 22.04 LTS on Pi4 4GB

mmaxbar avatar Aug 21 '22 19:08 mmaxbar

That's a good catch. I'll have to improve the documentation!

Host networking is a valid solution if you're running the controller on the same local network as your devices.

The fix for container networking is to change - "8443" to - "8443:8443".

ryansch avatar Aug 24 '22 12:08 ryansch

@mmaxbar I've updated the wiki. Can you let me know if it makes sense to you?

ryansch avatar Aug 24 '22 12:08 ryansch

I understand that change, the updated wiki still has one port configured for container networking:

ports: - "3478:3478/udp" - "8080:8080" - "8443:8443" # Replace the above line with the one below if you're using the caddy container. # - "8443" - "8880:8880" - "8843" - "6789:6789"

Whats 8843 for? Should it also be mapped to a port on the network interface?

mmaxbar avatar Sep 14 '22 18:09 mmaxbar

@mmaxbar Do you still need help?

ryansch avatar Jan 03 '24 19:01 ryansch

Thanks, everything works fine with network-mode=host, Have not tried container networking because I have no use for it...

mmaxbar avatar Feb 07 '24 21:02 mmaxbar