MongoDB access control not enabled


I am running into a similar problem as described here:

I now followed the instructions to the letter and it is working. However the mongo-db says

“Access control is not enabled for the database. Read and write access to data and configuration is unrestricted”

Which has me worried? How can I set this up with MongoDB and unified-network-application and have access control enabled?


This is covered in mongodb’s documentation and not something we help with. If you have a compose with only unifi and mongo and no ports on mongo exposed (as shown in their sample compose) nothing except unifi can reach it anyway, so who cares?