Version: 4.11

Environment Variables

If the source is env, DevSpace will not ask the user a question and instead use environment variables to determine the value of the variable.

images:
database:
image: "mysql:${MYSQL_VERSION}"
vars:
- name: MYSQL_VERSION
source: env
default: "5.5"
info

If source is env and the environment variable is not defined, DevSpace will use the default value or terminate with a fatal error, if there is no default value configured.

Configuration

name

The name option expects a string stating the name of the config variable that will be used to reference it within the remainder of the configuration.

Must be unique

The name of a config variable must be unique and is mandatory when defining a config variable.

default

The default option expects a string defining the default value for the variable.