Ok well regarding the 'memory leak' I have provided 2 potential ways to mitigate this (1 - set limit on docker, and 2 - modify the system.properties in order to prevent the database growing without running any cleanup operations). Between these 2 fixes there shouldnt be any further issues. Im on the latest version and works fine. A 2GB limit seems sufficient for the docker image, although 4GB is what Unifi themselves allocate their controllers so if you have the RAM to spare, I would use 4GB if possible. If you feel 2, or 4 GB is too much memory for a docker, well thats just how unifi coded it.