ryansch / docker-unifi-rpi

Unifi Controller for Raspberry Pi 3+ and x86
https://hub.docker.com/r/ryansch/unifi-rpi/
347 stars 42 forks source link

Unable to setup new network controller #96

Closed mmaxbar closed 7 months ago

mmaxbar commented 2 years ago

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

ryansch commented 2 years ago

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 commented 2 years ago

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

mmaxbar commented 1 year ago

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

_ports:

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

ryansch commented 8 months ago

@mmaxbar Do you still need help?

mmaxbar commented 7 months ago

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