Create README.md
This commit is contained in:
22
README.md
Normal file
22
README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# MongoDB-Server
|
||||
A ready-to-use mongodb server for use with Henry Pump datalogger products.
|
||||
|
||||
# Installation
|
||||
1. Clone this repository.
|
||||
2. Open the file "setup_mongo_users.js"
|
||||
3. Edit the top of the file to set your usernames, passwords, and databases. For instance, the following would create
|
||||
an admin user "admin" with password "Adm1nP4ssw0rd" and two users on the "dummy" database, one with username "dummy1"
|
||||
and password "badpassword" and another with username "dummyB" and password "monkey"
|
||||
```
|
||||
var ADMIN_USER = {username: "admin", password: "Adm1nP4ssw0rd"};
|
||||
var USERLIST = [
|
||||
{username: "dummy1", password: "badpassword", db: "dummy"},
|
||||
{username: "dummyB", password: "monkey", db: "dummy"},
|
||||
];
|
||||
```
|
||||
|
||||
4. Make any changes necessary to mongod.conf
|
||||
5. Build the Dockerfile and tag it with whatever you want.
|
||||
```
|
||||
docker build . --tag "mongodb-server"
|
||||
```
|
||||
Reference in New Issue
Block a user