Closed andrasg closed 9 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
The issue is likely because you're setting MONGO_INITDB_DATABASE: unifi
.
You need to only set the init.js file as other initialization steps may/will interfere with the commands in there.
Perfect, that solved it. Thanks for the quick help!
Is there an existing issue for this?
Current Behavior
Docs recommend creating the db with
readWrite
permissions:When I have tried this, got an error:
I was able to fix by changing the assigned db permissions to
dbAdmin
in theinit-mongo.js
file, removing the db and redeploying:Note: I am using
mongo:4.4.18
as I am on a rpi4, and I not able to confirm whether this issue is because this older mongo version.Expected Behavior
Docs should contain the right permissions (dbAdmin?) needed so the network controller is able to run.
Steps To Reproduce
mongo-init.js
runs with suggested content from docsEnvironment
CPU architecture
arm64
Docker creation
Container logs