added option to select database, mariadb or mysql (#233)
* added option to select database, mariadb or mysql * better naming convention * fix regex?
This commit is contained in:
parent
8e4d8c0ed8
commit
3a88ff218e
|
|
@ -7,7 +7,7 @@
|
||||||
"version": "3.3",
|
"version": "3.3",
|
||||||
"services": {
|
"services": {
|
||||||
"$$cap_appname-db": {
|
"$$cap_appname-db": {
|
||||||
"image": "mysql:$$cap_mysql_version",
|
"image": "$$cap_db_type:$$cap_database_version",
|
||||||
"notExposeAsWebApp": "true",
|
"notExposeAsWebApp": "true",
|
||||||
"volumes": ["$$cap_appname-db-data:/var/lib/mysql"],
|
"volumes": ["$$cap_appname-db-data:/var/lib/mysql"],
|
||||||
"restart": "always",
|
"restart": "always",
|
||||||
|
|
@ -59,10 +59,17 @@
|
||||||
"validRegex": "/^([^\\s^\\/])+$/"
|
"validRegex": "/^([^\\s^\\/])+$/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "$$cap_mysql_version",
|
"id": "$$cap_db_type",
|
||||||
"label": "MySQL Version",
|
"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",
|
"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^\\/])+$/"
|
"validRegex": "/^([^\\s^\\/])+$/"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue