Configure Mango Properties

July 12th, 2021


  • 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.

mango_paths_data=/opt/mango-data ./bin/start-mango.sh
  • 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:

  1. Java system property

  2. Environment variable

  3. Configuration file (mango.properties)

Copyright © 2024 Radix IoT, LLC.