FerryDocs

References

A reference is a value that Ferry replaces with the real value each time a container starts.

Edit on GitHub
Saved value${{…}}Ferryat each startContainerreal valueapp-dbdatastore

You save DATABASE_URL=${{datastore.app-db.connectionString}}.

1 / 4

A value can contain a : ${{kind.name.property}}. Ferry resolves it each time a starts. Thus an app always gets the current host, port or password.

The three parts

PartMeaningExample
kinddatastore or servicedatastore
nameThe name of the or the app-db
propertyWhat you want from itconnectionString

See the properties of a datastore and of a service.

Use references

Terminal
ferry env set api \
  'DATABASE_URL=${{datastore.app-db.connectionString}}' \
  'REDIS_URL=${{datastore.cache.connectionString}}' \
  'SEARCH_URL=${{service.search.internalUrl}}/v1'

The reference syntax page has the full grammar.

On this page