ReferenceBlueprint spec
Postgres databases
Each entry of databases creates one Postgres datastore.
databases:
- name: app-db # required
postgresMajorVersion: "16" # the image postgres:16-alpine
databaseName: app
user: app
plan: basic-256mb # 256 MiB of memoryEach entry of databases creates one Postgres datastore. See Datastores for how Ferry runs them.
The keys
| Key | Type | Default | Notes |
|---|---|---|---|
name | string | required | The name of the datastore. It has the same rules as the name of a service. It is the hostname on the private network. |
databaseName | string | name with - replaced by _ | The database to create. 1 to 63 letters, digits or _. The first character is not a digit. |
user | string | databaseName | The Postgres user. It has the same character rules as databaseName. |
postgresMajorVersion | string | 16 | The image tag: postgres:<version>-alpine. Digits and dots only. |
plan | string | none | The Postgres plan of Render. It becomes a memory limit. See Plans of a datastore. |
memoryLimit, cpuLimit | string or number | none | Ferry keys: the limits of the container. They replace the limits of the plan. See memoryLimit and cpuLimit. |
Services and datastores share their names: a name can exist one time only.
Ferry ignores other keys (region, ipAllowList, diskSizeGB…) with a warning.
After the first apply, an apply changes only the limits. See Datastores that exist.