summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--public/v2/apps/wordpress.json15
1 files changed, 11 insertions, 4 deletions
diff --git a/public/v2/apps/wordpress.json b/public/v2/apps/wordpress.json
index 76b2c7a..be237c3 100644
--- a/public/v2/apps/wordpress.json
+++ b/public/v2/apps/wordpress.json
@@ -7,7 +7,7 @@
"version": "3.3",
"services": {
"$$cap_appname-db": {
- "image": "mysql:$$cap_mysql_version",
+ "image": "$$cap_db_type:$$cap_database_version",
"notExposeAsWebApp": "true",
"volumes": ["$$cap_appname-db-data:/var/lib/mysql"],
"restart": "always",
@@ -59,10 +59,17 @@
"validRegex": "/^([^\\s^\\/])+$/"
},
{
- "id": "$$cap_mysql_version",
- "label": "MySQL Version",
+ "id": "$$cap_db_type",
+ "label": "Database Type",
+ "defaultValue": "mysql",
+ "description": "You can either choose mariadb or mysql, you need to change the version according to which DB is selected. It is case sensitive.",
+ "validRegex": "/^(mysql|mariadb)$/"
+ },
+ {
+ "id": "$$cap_database_version",
+ "label": "Database Version, default is MySQL",
"defaultValue": "5.7",
- "description": "Check out their Docker page for the valid tags https://hub.docker.com/r/library/mysql/tags/",
+ "description": "Check out the Docker pages for the valid tags https://hub.docker.com/r/library/mysql/tags/ or https://hub.docker.com/_/mariadb?tab=tags",
"validRegex": "/^([^\\s^\\/])+$/"
}
]