FerryDocs

Datastore properties

A reference of the kind datastore gives the connection string of a datastore, or one part of it.

Edit on GitHub
Terminal
ferry env set api 'DATABASE_URL=${{datastore.app-db.connectionString}}'
# → DATABASE_URL=postgresql://app_db:<password>@app-db:5432/app_db in the containers of api

The kind is datastore. You can also write db or database. The name is the name of the . See Datastores.

The properties

PropertyOther namesPostgresRedis
connectionStringurl, internalUrlpostgresql://USER:PASSWORD@NAME:5432/DATABASEredis://default:PASSWORD@NAME:6379
externalConnectionStringexternalUrlThe same URL with ADVERTISE_HOST:HOST_PORTThe same URL with ADVERTISE_HOST:HOST_PORT
hosthostnameNAMENAME
port54326379
userusernameThe Postgres userdefault
passwordThe password that Ferry madeThe password that Ferry made
databasedatabaseNameThe name of the databaseAn error: Redis has no database name

Private or external

PropertyNetworkUse
connectionString, hostThe From each service on the same server
externalConnectionStringThe port that the datastore publishes on the serverFrom tools that run outside Docker

On this page