get the mongo authentication to workgit add .

This commit is contained in:
Cassie Tarakajian 2018-06-25 19:16:42 -07:00
parent a7f319a727
commit f6f8e145d1
1 changed files with 1 additions and 1 deletions

View File

@ -1 +1 @@
mongo $MONGO_INITDB_DATABASE --eval "db.createUser({ user: '$MONGO_RW_USERNAME', pwd: '$MONGO_RW_PASSWORD', roles: [ 'readWrite' ] })"
mongo admin -u $MONGO_INITDB_ROOT_USERNAME -p $MONGO_INITDB_ROOT_PASSWORD --eval "db.createUser({ user: '$MONGO_RW_USERNAME', pwd: '$MONGO_RW_PASSWORD', roles: [ { role: 'readWrite', db: '$MONGO_INITDB_DATABASE' }, { role: 'readWrite', db: 'sessions' }] })"