Hi,
I am running into a similar problem as described here:
Hi,
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
---
version: "3.1"
services:
unifi-db:
image: docker.io/mongo:4.4.18
ports:
- 27017:27017
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD_FILE : /run/secrets/mongodb_admin_user_password
container_name: unifi-db
volumes:
- db_data:/data/db
# - ./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?
Regards
JP
driz
20 November 2023 20:25
2
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?