I am running into a similar problem as described here:
I’m about to get crazy to have the Unifi Network Application to work.
I have two docker compose files:
One file is to create the mongodb part, unifi_db.yml
MONGO_INITDB_ROOT_PASSWORD_FILE : /run/secrets/mongodb_admin_user_password
# - ./init-mongo.…
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?