Create the database
One command creates a Postgres datastore and prints its internal URL.
Terminal
$ ferry db create notes-db --waitWaiting for postgres 'notes-db' to become available…Created postgres datastore 'notes-db' (dbs-be901a454ec7413aa1a2) — availableInternal URL: postgresql://notes_db:6dd99f93338045919b9e682913c3c6a4@notes-db:5432/notes_dbFerry runs postgres:16-alpine as a datastore. Its data is on a Docker volume.
What is in the URL
The internal URL has all that the app needs to connect.
| Part | Value | Where it comes from |
|---|---|---|
| User | notes_db | The name of the datastore |
| Password | 6dd99f93… | Ferry makes it |
| Host and port | notes-db:5432 | The name of the datastore, on the private network |
| Database | notes_db | The name of the datastore |
See Datastores for the versions, the storage and the limits.