summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--one-click-apps/v1/mongodb.json4
-rw-r--r--one-click-apps/v1/mysql.json42
-rw-r--r--one-click-apps/v1/phpmyadmin.json33
3 files changed, 77 insertions, 2 deletions
diff --git a/one-click-apps/v1/mongodb.json b/one-click-apps/v1/mongodb.json
index 1516cc8..06e166a 100644
--- a/one-click-apps/v1/mongodb.json
+++ b/one-click-apps/v1/mongodb.json
@@ -23,8 +23,8 @@
}
},
"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.",
- "end":"Parse is deployed and available as $$cap_appname-parse."
+ "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": [
{
diff --git a/one-click-apps/v1/mysql.json b/one-click-apps/v1/mysql.json
new file mode 100644
index 0000000..02e87a5
--- /dev/null
+++ b/one-click-apps/v1/mysql.json
@@ -0,0 +1,42 @@
+{
+ "captainVersion": "1",
+ "documentation": "Taken from https://docs.docker.com/compose/mysql/ port mapping removed from WP as it's not needed",
+ "dockerCompose":
+ {
+ "version": "3.3",
+ "services":
+ {
+ "$$cap_appname-db":
+ {
+ "image": "mysql:$$cap_mysql_version",
+ "volumes": [
+ "$$cap_appname-db-data:/var/lib/mysql"
+ ],
+ "restart": "always",
+ "environment":
+ {
+ "MYSQL_ROOT_PASSWORD": "$$cap_mysql_version"
+ }
+ }
+ }
+ },
+ "instructions":{
+ "start":"MySQL is the world's most popular open source database. With its proven performance, reliability and ease-of-use, MySQL has become the leading database choice for web-based applications, covering the entire range from personal projects and websites, via e-commerce and information services, all the way to high profile web properties including Facebook, Twitter, YouTube, Yahoo! and many more.\n\n After installation on CaptainDuckDuck, it will be available as srv-captain--YOUR_CONTAINER_NAME at port 3306 to other CapRover apps.\n\nEnter your MySQL Configuration parameters and click on next. It will take about a minute for the process to finish.",
+ "end":"'MySQL is deployed and available as srv-captain--$$cap_appname-db:3306 to other apps. For example with NodeJS, you do 'var con = mysql.createConnection({ host: 'srv-captain--$$cap_appname-db', user: 'root', password: '*********' });'"
+ },
+ "variables": [
+ {
+ "id": "$$cap_mysql_version",
+ "label": "MySQL Version",
+ "defaultValue": "5.7",
+ "description": "Checkout their docker page for the valid tags https://hub.docker.com/r/library/mysql/tags/",
+ "validRegex": "/.{1,}/"
+ },
+ {
+ "id": "$$cap_db_pass",
+ "label": "MySQL Root password",
+ "description": "",
+ "validRegex": "/.{1,}/"
+ }]
+
+}
diff --git a/one-click-apps/v1/phpmyadmin.json b/one-click-apps/v1/phpmyadmin.json
new file mode 100644
index 0000000..66eaa50
--- /dev/null
+++ b/one-click-apps/v1/phpmyadmin.json
@@ -0,0 +1,33 @@
+{
+ "captainVersion": "1",
+ "documentation": "Taken from https://hub.docker.com/r/phpmyadmin/phpmyadmin/",
+ "dockerCompose":
+ {
+ "version": "3.3",
+ "services":
+ {
+ "$$cap_appname":
+ {
+ "image": "phpmyadmin/phpmyadmin:$$cap_pma_version",
+ "restart": "always",
+ "environment":
+ {
+ "PMA_ARBITRARY": "1"
+ }
+ }
+ }
+ },
+ "instructions":{
+ "start":"PhpMyAdmin is the most popular web interface for MySQL & MariaDB. Simply install PhpMyAdmin and then select what database you want to connect to.\n\n Enter your PhpMyAdmin Configuration parameters and click on next. It will take about a minute for the process to finish.",
+ "end":"PhpMyAdmin is deployed and available as $$cap_appname"
+ },
+ "variables": [
+ {
+ "id": "$$cap_pma_version",
+ "label": "PHP My Admin Version Tag",
+ "description": "Checkout their docker page for the valid tags https://hub.docker.com/r/phpmyadmin/phpmyadmin/tags/",
+ "defaultValue": "4.8",
+ "validRegex": "/^([a-zA-Z0-9-.])+$/"
+ }]
+
+}