I would like to be able to add env variables not only with input fields, but with more types.
We develop an internal tool for this purpose, and we could abandon it for portainer if we have this feature.
I'll try to describe it with examples :
{
"title": "MySQL",
"description": "The most popular open-source database",
"categories": ["database"],
"platform": "linux",
"logo": "https://cloudinovasi.id/assets/img/logos/mysql.png",
"image": "mysql:latest",
"env": [
{
"name": "MYSQL_ROOT_PASSWORD",
"label": "Root password"
}
],
"ports": [
"3306/tcp"
],
"volumes": ["/var/lib/mysql"]
}
{
"title": "MySQL",
"description": "The most popular open-source database",
"categories": ["database"],
"platform": "linux",
"logo": "https://cloudinovasi.id/assets/img/logos/mysql.png",
"image": "mysql:latest",
"env": [
{
"name": "MYSQL_ROOT_PASSWORD",
"label": "Root password"
},
{
"name": "MYSQL_VAR_1",
"label": "var 1",
"type": "select",
"values": [
"value1",
"value2"
]
},
{
"name": "MYSQL_VAR_2",
"label": "var 2",
"type": "select",
"values_from": "https://mywebservice/mysql/var2"
},
{
"name": "MYSQL_VAR_3",
"label": "var 3",
"type": "radio",
"values": [
"value1",
"value2"
]
}
],
"ports": [
"3306/tcp"
],
"volumes": ["/var/lib/mysql"]
}