p5.js-web-editor/mongo/init.sh

1 line
134 B
Bash
Raw Normal View History

mongo $MONGO_INITDB_DATABASE --eval "db.createUser({ user: '$MONGO_RW_USERNAME', pwd: '$MONGO_RW_PASSWORD', roles: [ 'readWrite' ] })"