Reformat all

This commit is contained in:
Kasra Bigdeli
2019-01-16 23:01:46 -08:00
parent fab96ad238
commit 9b8d75d061
15 changed files with 436 additions and 510 deletions

View File

@@ -1,51 +1,47 @@
{
"captainVersion": "1",
"documentation": "Taken from https://hub.docker.com/r/mongo/",
"dockerCompose":
{
"dockerCompose": {
"version": "3.3",
"services":
{
"$$cap_appname":
{
"services": {
"$$cap_appname": {
"image": "mongo:$$cap_mongo_version",
"volumes": [
"$$cap_appname-db-data:/data/db",
"$$cap_appname-db-config:/data/configdb"
],
"restart": "always",
"environment":
{
"environment": {
"MONGO_INITDB_ROOT_USERNAME": "$$cap_mongo_username",
"MONGO_INITDB_ROOT_PASSWORD": "$$cap_mongo_password"
}
}
}
},
"instructions":{
"start":"MongoDB is a cross-platform document-oriented database. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. \n\n After installation on CaptainDuckDuck, it will be available as srv-captain--YOUR_CONTAINER_NAME at port 27017 to other CaptainDuckDuck apps.\n\n Enter your MongoDB Configuration parameters and click on next. It will take about a minute for the process to finish.",
"end":"MongoDB is deployed and available as srv-captain--$$cap_appname:27017 to other apps. For example with NodeJS: mongoose.connect('mongodb://srv-captain--$$cap_appname/mydatabase', {userMongoClient: true});"
"instructions": {
"start": "MongoDB is a cross-platform document-oriented database. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas. \n\n After installation on CaptainDuckDuck, it will be available as srv-captain--YOUR_CONTAINER_NAME at port 27017 to other CaptainDuckDuck apps.\n\n Enter your MongoDB Configuration parameters and click on next. It will take about a minute for the process to finish.",
"end": "MongoDB is deployed and available as srv-captain--$$cap_appname:27017 to other apps. For example with NodeJS: mongoose.connect('mongodb://srv-captain--$$cap_appname/mydatabase', {userMongoClient: true});"
},
"variables": [
{
"id": "$$cap_mongo_version",
"label": "MongoDB Version",
"defaultValue": "4",
"description": "Checkout their docker page for the valid tags https://hub.docker.com/r/library/mongo/tags/",
"validRegex": "/^([a-zA-Z0-9])+$/"
},
{
"id": "$$cap_mongo_username",
"label": "MongoDB RootUsername",
"defaultValue": "root",
"description": "Only use alphanumeric chars.",
"validRegex": "/^([a-zA-Z0-9])+$/"
},
{
"id": "$$cap_mongo_password",
"label": "MongoDB password",
"description": "Only use alphanumeric chars.",
"validRegex": "/^([a-zA-Z0-9])+$/"
}]
"variables": [{
"id": "$$cap_mongo_version",
"label": "MongoDB Version",
"defaultValue": "4",
"description": "Checkout their docker page for the valid tags https://hub.docker.com/r/library/mongo/tags/",
"validRegex": "/^([a-zA-Z0-9])+$/"
},
{
"id": "$$cap_mongo_username",
"label": "MongoDB RootUsername",
"defaultValue": "root",
"description": "Only use alphanumeric chars.",
"validRegex": "/^([a-zA-Z0-9])+$/"
},
{
"id": "$$cap_mongo_password",
"label": "MongoDB password",
"description": "Only use alphanumeric chars.",
"validRegex": "/^([a-zA-Z0-9])+$/"
}
]
}
}