The Mango configuration file mango.properties (formerly env.properties) is only one way to configure Mango. You can also set environment variables or Java system properties. This is useful in particular for running Mango inside a containerized environment.
The environment variable name can be constructed from the property name by prefixing it with "mango_" and replacing the periods with underscores. e.g. paths.data becomes mango_paths_data. You can set environment variables in your shell e.g.
- The Java system property name can be constructed from the property name by prefixing it with "mango." e.g. paths.data becomes mango.paths.data. You can set Java system properties when you launch java e.g.
java -Dmango.paths.data=/opt/mango-data -jar bin/ma-bootstrap.jar
The order of precedence is:
Java system property
Configuration file (mango.properties)