Browse Source

Merge pull request #988 from infosiftr/configdb

Add a note to mongo about "/data/configdb" (and --configsvr)
Tianon Gravi 8 years ago
parent
commit
5a35620fa4
1 changed files with 2 additions and 0 deletions
  1. 2 0
      mongo/content.md

+ 2 - 0
mongo/content.md

@@ -95,6 +95,8 @@ The Docker documentation is a good starting point for understanding the differen
 
 The `-v /my/own/datadir:/data/db` part of the command mounts the `/my/own/datadir` directory from the underlying host system as `/data/db` inside the container, where MongoDB by default will write its data files.
 
+This image also defines a volume for `/data/configdb` [for use with `--configsvr` (see docs.mongodb.com for more details)](https://docs.mongodb.com/v3.4/reference/program/mongod/#cmdoption-configsvr).
+
 Note that users on host systems with SELinux enabled may see issues with this. The current workaround is to assign the relevant SELinux policy type to the new data directory so that the container will be allowed to access it:
 
 ```console