@prescrire/cfg

A CLI tool for running docker compositions, swarms, and managing secrets

Usage no npm install needed!

<script type="module">
  import prescrireCfg from 'https://cdn.skypack.dev/@prescrire/cfg';
</script>

README

Configuration files

  1. package.json
  2. development.env
  3. production.env
  4. .cfg.json

Secrets

Put to your .gitignore and (in some cases) .gockerignore following lines:

.cfg.json
.secrets/

Configuration merge priority

The cfg reads its configuration in multiple places and merges them into one in accordance to a priority below:

  1. .cfg.json file in project root (should be added to .gitignore)
  2. cfg property in package.json
  3. package.json for props: name