Added parse dashboard

This commit is contained in:
Kasra Bigdeli 2020-01-19 10:43:03 -05:00
parent 7af1daa183
commit f5ce64fcfa
1 changed files with 34 additions and 1 deletions

View File

@ -26,18 +26,39 @@
"image": "parseplatform/parse-server:$$cap_parse_version", "image": "parseplatform/parse-server:$$cap_parse_version",
"containerHttpPort": "8080", "containerHttpPort": "8080",
"restart": "always", "restart": "always",
"volumes": [
"$$cap_appname-parse-cloud:/parse-server/cloud",
"$$cap_appname-parse-config:/parse-server/config"
],
"environment": { "environment": {
"PORT": "8080", "PORT": "8080",
"PARSE_SERVER_APPLICATION_ID": "$$cap_app_id", "PARSE_SERVER_APPLICATION_ID": "$$cap_app_id",
"PARSE_SERVER_MASTER_KEY": "$$cap_master_key", "PARSE_SERVER_MASTER_KEY": "$$cap_master_key",
"PARSE_SERVER_DATABASE_URI": "mongodb://root:$$cap_mongo_password@srv-captain--$$cap_appname-mongodb:27017/parse?authSource=admin" "PARSE_SERVER_DATABASE_URI": "mongodb://root:$$cap_mongo_password@srv-captain--$$cap_appname-mongodb:27017/parse?authSource=admin"
} }
},
"$$cap_appname-parse-dashbaord": {
"depends_on": [
"$$cap_appname-parse"
],
"image": "parseplatform/parse-dashboard:$$cap_parse_dashboard_version",
"containerHttpPort": "4040",
"restart": "always",
"environment": {
"PORT": "4040",
"PARSE_DASHBOARD_SERVER_URL": "http://srv-captain--$$cap_appname-parse:8080/parse",
"PARSE_DASHBOARD_MASTER_KEY": "$$cap_master_key",
"PARSE_DASHBOARD_APP_ID": "$$cap_app_id",
"PARSE_DASHBOARD_APP_NAME": "$$cap_appname-parse",
"PARSE_DASHBOARD_USER_ID": "caprover",
"PARSE_DASHBOARD_USER_PASSWORD": "$$cap_parse_dashboard_password"
}
} }
} }
}, },
"instructions": { "instructions": {
"start": "Parse Server is an open source version of the Parse backend that can be deployed to any infrastructure that can run Node.js. For more information on Parse platform see http://parseplatform.org\n\n Enter your Parse Configuration parameters and click on next. A MongoDB (database) and a Parse container will be created for you. The process will take about a minute for the process to finish.", "start": "Parse Server is an open source version of the Parse backend that can be deployed to any infrastructure that can run Node.js. For more information on Parse platform see http://parseplatform.org\n\n Enter your Parse Configuration parameters and click on next. A MongoDB (database) and a Parse container will be created for you. The process will take about a minute for the process to finish.",
"end": "Parse is deployed and available as $$cap_appname-parse." "end": "Parse is deployed! IMPORTANT: Make sure to enable HTTPS and Force HTTPS on your apps before accessing them! Your Parse Dashboard username is \"caprover\""
}, },
"variables": [{ "variables": [{
"id": "$$cap_mongo_version", "id": "$$cap_mongo_version",
@ -52,6 +73,18 @@
"description": "Only use alphanumeric chars.", "description": "Only use alphanumeric chars.",
"validRegex": "/^([a-zA-Z0-9])+$/" "validRegex": "/^([a-zA-Z0-9])+$/"
}, },
{
"id": "$$cap_parse_dashboard_version",
"label": "Parse Dashboard Version",
"defaultValue": "2.0.5",
"description": "Check out their Docker page for the valid tags https://hub.docker.com/r/parseplatform/parse-dashboard/tags",
"validRegex": "/^([^\\s^\\/])+$/"
},
{
"id": "$$cap_parse_dashboard_password",
"label": "Parse Dashboard Password",
"validRegex": "/^\\S{8,}$/"
},
{ {
"id": "$$cap_parse_version", "id": "$$cap_parse_version",
"label": "Parse Version", "label": "Parse Version",