From 9c86a64b95204c69e413c3b633b76e40a6a5c4fe Mon Sep 17 00:00:00 2001 From: Kfir Dayan Date: Tue, 30 May 2023 15:10:04 +0300 Subject: [PATCH] configuration stuff --- init-scripts/init.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 init-scripts/init.js diff --git a/init-scripts/init.js b/init-scripts/init.js new file mode 100755 index 0000000..9ee3b37 --- /dev/null +++ b/init-scripts/init.js @@ -0,0 +1,10 @@ + +db = db.getSiblingDB('test'); + +db.createUser({ + user: "rank_user", + pwd: "12345", + roles: [{ role: "readWrite", db: "test" }] +}); + +db.createCollection('rank_crawler');