It should be noted that the repo you linked is for a deprecated image that's losing support at the end of this year: https://info.linuxserver.io/issues/2023-09-06-unifi-controll...
The note I link above discusses its replacement and how to upgrade.
The note I link above discusses its replacement and how to upgrade.