FerryDocs

References to a service

A reference to a service gives its name, its port or its URL.

Edit on GitHub
On the private networkapihost3000portapi:3000hostporthttp://api:3000internalUrlPublic URLurl

host gives the name of the service. It is its hostname on the private network.

1 / 5

The kind is service. You can also write svc.

Terminal
ferry env set api 'SEARCH_URL=${{service.search.internalUrl}}/v1'

The properties

PropertyAliasesValue
hosthostnameThe service name, its on the
portThe port the service listens on
hostporthost:port, for example api:3000
internalUrlhttp://host:port
urlexternalUrlThe public URL (web services and static sites only)

The port must be known

port, hostport and internalUrl need the of the target service. Ferry knows it after that service deployed, or when you set its port with --port.

On this page