Skip to content

Commit ca3e395

Browse files
authored
Merge pull request #3 from linuxserver/root-note
2 parents 390b58b + bbad979 commit ca3e395

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ volumes:
8585
8686
*Note that the init script method will only work on first run. If you start the mongodb container without an init script it will generate test data automatically and you will have to manually create your databases, or restart with a clean `/data/db` volume and an init script mounted.*
8787

88+
*If you are using the init script method do not also set `MONGO_INITDB_ROOT_USERNAME` or `MONGO_INITDB_ROOT_PASSWORD` values as they will cause conflicts.*
89+
8890
You can also run the commands directly against the database using either `mongo` (< 6.0) or `mongosh` (>= 6.0).
8991

9092
### Device Adoption

readme-vars.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ app_setup_block: |
7979
8080
*Note that the init script method will only work on first run. If you start the mongodb container without an init script it will generate test data automatically and you will have to manually create your databases, or restart with a clean `/data/db` volume and an init script mounted.*
8181
82+
*If you are using the init script method do not also set `MONGO_INITDB_ROOT_USERNAME` or `MONGO_INITDB_ROOT_PASSWORD` values as they will cause conflicts.*
83+
8284
You can also run the commands directly against the database using either `mongo` (< 6.0) or `mongosh` (>= 6.0).
8385
8486
### Device Adoption

0 commit comments

Comments
 (0)