serverctl/registry/mongo.json

34 lines
722 B
JSON

{
"$type": "service",
"name": "mongo",
"description": "MongoDB NoSQL Server",
"tags": [ "nosql" ],
"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",
"arguments": [ "-u", "root", "-p", "toor" ]
},
"export": {
"info": "Export the database",
"execute": "mongodump"
},
"import": {
"info": "Import the database",
"execute": "mongoimport"
}
}
}