FerryDocs

Reference properties

The property of fromDatabase or fromService tells which value of the target the variable gets.

Edit on GitHub
ferry.yaml
envVars:
  - key: DATABASE_URL
    fromDatabase: { name: app-db, property: connectionString }   # ${{datastore.app-db.connectionString}}
  - key: API_HOST
    fromService: { type: pserv, name: api, property: hostport }  # ${{service.api.hostport}}

Ferry changes each fromDatabase and fromService entry into a . The tells which value you get.

Properties of a datastore

For fromDatabase, and for fromService with type: redis or keyvalue:

PropertyValue
connectionStringThe URL on the , such as postgresql://app:…@app-db:5432/app or redis://default:…@cache:6379
externalConnectionStringThe same URL through the port that the server publishes, for tools that run outside Docker
host, port, hostportapp-db, 5432 and app-db:5432
user, passwordThe credentials
databaseThe name of the Postgres database. Redis has none.

Properties of a service

For fromService with a service type:

PropertyExists for
hostEach service type
port, hostport, internalUrlServices that listen on a port: web services, private services and static sites
url (the public URL)Web services and static sites

The env references pages list each property with its other names.

On this page