The Unifi Controller Docker occasionally needs running in Host mode. When I revert it back to bridge, a port has changed. I'm putting it here, as I don't *think* it's container specific (everything is done editing the template).
Steps
Set port 8883 to 8884 in the template (8883 is in use on my system by Heimdall)...
System works, but temporarily need host mode to discover access points
Switch to Host mode
Can only access UI via port 8883, so temporarily turn off other docker using it
Configure access points just fine
Switch back to Bridge mode
The read only container port in the template has mysteriously set itself to 8444. Can no longer access system, as there is no longer a port 8883
All I've done is switched to Host and back, and the read-only container port has changed from 8443 to 8444. I have to delete the container port and recreate it.
This happened when I originally configured it last summer, but just happened again on 6.8.2.
Is this an issue with Docker, an unfortunate side-effect, or am I being stupid? It's obviously not a huge issue, but it took me a while to work out why I lost access.