FerryDocs

Service properties

A reference of the kind service gives the host, the port or a URL of a different service.

Edit on GitHub
Terminal
ferry env set web 'API_URL=${{service.api.internalUrl}}/v1'
# → API_URL=http://api:3000/v1 in the containers of web

The kind is service. You can also write svc. The name is the name of the .

The properties

PropertyOther namesValueAvailable for
hosthostnameNAME: the hostname of the service on the Each service type
portThe port that the service listens onWeb services, private services, static sites
hostportNAME:PORTWeb services, private services, static sites
internalUrlhttp://NAME:PORTWeb services, private services, static sites
urlexternalUrlThe , such as http://web.localhost:8080Web services and static sites

Which port

The target servicePort
Has a live deployThe port that the live deploy listens on
Has no live deploy yetThe port in its settings
Has no deploy and no port settingNot known

If Ferry does not know the port, see Port references wait for the first deploy.

On this page