mirror of
https://github.com/portainer/portainer-docs.git
synced 2026-03-27 12:58:32 +07:00
Merge pull request #13 from portainer/docs11-env-type
docs(templates): document the type field for the environment variables
This commit is contained in:
@@ -70,6 +70,14 @@ A JSON array describing the environment variables required by the template. Each
|
||||
|
||||
An input will be generated in the templates view for each element in the array.
|
||||
|
||||
Depending on the value in `type` field, the view
|
||||
will display a different input. For example, when using the value `container` for the `type` field, the UI will display a dropdown with all
|
||||
the running containers. The container hostname will then be inserted as a value in the environment variable.
|
||||
|
||||
Supported types:
|
||||
|
||||
* `container`
|
||||
|
||||
This field is **optional**.
|
||||
|
||||
Element format:
|
||||
@@ -79,6 +87,7 @@ Element format:
|
||||
{
|
||||
"name": "the name of the environment variable, as supported in the container image (mandatory)",
|
||||
"label": "label for the input in the UI (mandatory)",
|
||||
"type": "only container is available at the moment (optional)",
|
||||
"set": "pre-defined value for the variable, will not generate an input in the UI (optional)"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user