mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-12-03 02:42:19 +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.createUser({
|
||||
user: "MONGO_OPENIM_USERNAME",
|
||||
pwd: "MONGO_OPENIM_PASSWORD",
|
||||
user: "$MONGO_OPENIM_USERNAME",
|
||||
pwd: "$MONGO_OPENIM_PASSWORD",
|
||||
roles: [
|
||||
// Assign appropriate roles here
|
||||
{ role: 'readWrite', db: '$MONGO_INITDB_DATABASE' }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user