FerryDocs

References to a datastore

A reference to a datastore gives its connection string, or one part of it.

Edit on GitHub
app_dbuser…passwordapp-dbhost5432portapp_dbdatabase

connectionString gives the full URL: postgresql://app_db:…@app-db:5432/app_db.

1 / 6

The kind is datastore. You can also write db or database.

Terminal
ferry env set api 'DATABASE_URL=${{datastore.app-db.connectionString}}'

The properties

PropertyAliasesValue
connectionStringurl, internalUrlURL on the , for example postgresql://app_db:…@app-db:5432/app_db
externalConnectionStringexternalUrlURL through the port published on the server, with the --advertise-host host
hosthostnameThe datastore name, for example app-db
port5432 (Postgres) or 6379 (Redis)
userusernameThe Postgres user, or default for Redis
passwordThe generated password
databasedatabaseNameThe Postgres database name (Redis has none)

A is the URL that your app uses to connect to the . See Datastores and Datastore ports.

On this page