2022-09-27 10:29:56 +00:00
|
|
|
{
|
|
|
|
"$type": "service",
|
|
|
|
"name": "mongo",
|
2022-09-27 23:11:14 +00:00
|
|
|
"description": "MongoDB NoSQL Server",
|
|
|
|
"tags": [ "nosql" ],
|
2022-09-27 10:29:56 +00:00
|
|
|
"author": null,
|
|
|
|
"image": "mongo",
|
|
|
|
"ports": [
|
|
|
|
{ "port": 27017, "info": "Mongo client" }
|
|
|
|
],
|
|
|
|
"persistence": [
|
|
|
|
{ "path": "/data/db", "hint": "data" }
|
|
|
|
],
|
|
|
|
"environment": {
|
|
|
|
"MONGO_INITDB_ROOT_PASSWORD": "toor",
|
|
|
|
"MONGO_INITDB_ROOT_USERNAME": "root"
|
|
|
|
},
|
|
|
|
"scripts": {
|
|
|
|
"shell": {
|
|
|
|
"info": "Open the mongo shell",
|
|
|
|
"execute": "mongosh"
|
|
|
|
},
|
|
|
|
"export": {
|
|
|
|
"info": "Export the database",
|
|
|
|
"execute": "mongodump"
|
|
|
|
},
|
|
|
|
"import": {
|
|
|
|
"info": "Import the database",
|
|
|
|
"execute": "mongoimport"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|