-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Update Mongo docs for new configuration features #1127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Addresses docker-library/mongo/issues/189. Documents docker-library/mongo/pull/145 and docker-library/mongo/pull/225. |
Haven't looked at the rest of the changes yet, but on the subject of:
That'd be (and even without an |
9f232e5
to
0a2875e
Compare
@tianon updated to use stack.yml |
This should be merged |
mongo/content.md
Outdated
|
||
### `MONGO_INITDB_ROOT_USERNAME`, `MONGO_INITDB_ROOT_PASSWORD` | ||
|
||
These variables are optional, used in conjunction to create a new user and to set that user's password. This user will be created in the `admin` authentication database and given the role of `root`. superuser permissions (see above) for the database specified by the `MYSQL_DATABASE` variable. Both variables are required for a user to be created. If both are present then Mongo will start with authentication enabled: `mongod --auth`. Authentication in MongoDB is fairly complex, so more complex user setup is explicitly left to the user via `/docker-entrypoint-initdb.d/` (see *Initializing a fresh instance* below). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably it should not be MYSQL_DATABASE
in this line?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the catch!
The whole partial sentence of superuser permissions (see above) for the database specified by the
MYSQL_DATABASE variable.
should have been removed.
@bchrobot thx for changing it. Would it maybe be possible to add a short comment about using ENV variables for this kind of scenario: docker-library/mongo#257 ? |
@BorntraegerMarc I believe that is a Mongo server issue, not a Docker one. There is an open issue on Mongo's Jira about exposing environment variables within the mongo shell (and thus within Mongo scripts). |
35655e7
to
5349fea
Compare
This is mostly based on the MySQL docs.
Some notes:
stack.yml
because theadminer
image does not work with MongoDB and I could not quickly find and vet another Mongo admin image.@yosifkit, @tianon
Closes docker-library/mongo#189