32 lines
635 B
JSON
32 lines
635 B
JSON
|
{
|
||
|
"$type": "service",
|
||
|
"name": "mongo",
|
||
|
"description": "MongoDB",
|
||
|
"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"
|
||
|
}
|
||
|
}
|
||
|
}
|