FerryDocs

Which value wins

Ferry merges the variables in three layers. A later layer wins.

Edit on GitHub
FerryPORT, FERRY_*sharedLOG_LEVEL=infoextraLOG_LEVEL=debugechoLOG_LEVEL=warnContainerPORT, FERRY_*

Layer 1: the variables that Ferry injects.

1 / 4

Ferry merges the environment of a service in this order. This is the :

  1. the variables that Ferry injects (PORT, FERRY_*)
  2. its , in the order of the links
  3. its own variables

See the result

Terminal
$ 

The command shows the .

  • shared sets LOG_LEVEL=info.
  • extra sets LOG_LEVEL=debug. You linked it later.
  • The own LOG_LEVEL=warn of the service wins.

Without the own value, the service gets debug.

On this page