FerryDocs

Injected variables

Ferry adds PORT and the FERRY_* variables to each container of a service.

Edit on GitHub
FerryPORT, FERRY_*Serviceall of themJoball, but not PORTBuildnone of them

Ferry adds its variables to each container of a service.

1 / 3

An comes from Ferry, not from you. Ferry adds these variables to each of a service. If you set a variable with the same name, your value wins.

The variables

VariableValueSet for
PORTThe port Ferry routes toWeb services, private services, static sites
FERRYtrueAll
FERRY_SERVICE_IDFor example srv-5c57d756f6ad47f59800All
FERRY_SERVICE_NAMEFor example echoAll
FERRY_SERVICE_TYPEweb_service, private_service, background_worker, cron_job or static_siteAll
FERRY_DEPLOY_IDThe deploy the container belongs toAll
FERRY_INTERNAL_HOSTNAMEThe service name (its private hostname)All
FERRY_GIT_COMMIT, FERRY_GIT_BRANCHThe deployed commit and the branchDeploys from git
FERRY_EXTERNAL_HOSTNAMEFor example echo.localhostWeb services, static sites
FERRY_EXTERNAL_URLFor example http://echo.localhost:8080Web services, static sites

See The PORT variable and Builds & runtimes.

On this page