centraldogma icon indicating copy to clipboard operation
centraldogma copied to clipboard

Resolve configuration values using enviroment values

Open ikhoon opened this issue 3 years ago • 0 comments

Central Dogma only statically resolves the configuration file - dogma.json. It could be convenient to override the configuration with environment variables, especially for Docker and cloud infrastructure.

The following syntax is inspired by logback's configuration via environment variables

{
    "dataDir": "${DATA_DIR:-./data}",
    "numRepositoryWorkers": "${NUM_REPOSITORY_WORKERS:-16}",
}

ikhoon avatar May 24 '21 07:05 ikhoon