forked from kristjan/cjvt-valency
17 lines
409 B
Bash
17 lines
409 B
Bash
|
#!/bin/bash
|
||
|
echo "exiting - check script"
|
||
|
exit
|
||
|
|
||
|
# obviously, change root and password!
|
||
|
|
||
|
# db names: nameDB
|
||
|
# collection names: lower case, plural
|
||
|
# user names?
|
||
|
|
||
|
# mongo admin -u root -p password --eval "db.getSiblingDB('vlDB').addUser('vluser', 'password')"
|
||
|
|
||
|
docker exec -it mongo-container /bin/bash
|
||
|
mongo -u root -p example
|
||
|
use valDB
|
||
|
db.createUser({user: "kristjan", pwd: "password", roles: ["readWrite"]})
|