mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 10:52:33 +08:00
Update mongo-init.sh
This commit is contained in:
parent
12d61d37c5
commit
1c9b790f4f
@ -21,8 +21,8 @@ db.auth('$MONGO_INITDB_ROOT_USERNAME', '$MONGO_INITDB_ROOT_PASSWORD')
|
|||||||
|
|
||||||
db = db.getSiblingDB('$MONGO_INITDB_DATABASE')
|
db = db.getSiblingDB('$MONGO_INITDB_DATABASE')
|
||||||
db.createUser({
|
db.createUser({
|
||||||
user: "MONGO_OPENIM_USERNAME",
|
user: "$MONGO_OPENIM_USERNAME",
|
||||||
pwd: "MONGO_OPENIM_PASSWORD",
|
pwd: "$MONGO_OPENIM_PASSWORD",
|
||||||
roles: [
|
roles: [
|
||||||
// Assign appropriate roles here
|
// Assign appropriate roles here
|
||||||
{ role: 'readWrite', db: '$MONGO_INITDB_DATABASE' }
|
{ role: 'readWrite', db: '$MONGO_INITDB_DATABASE' }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user