Create Coolify Database
coolify_create_databaseProvision a new database (PostgreSQL, MySQL, etc.) on a Coolify server. Specify project, server, destination, and engine type to deploy.
Instructions
Create a new database resource. For Devon's Flavor B apps, this is typically PostgreSQL 16 deployed on the same VPS. Supported types: postgresql, mysql, mariadb, mongodb, redis, keydb, clickhouse, dragonfly.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Database display name | |
| type | Yes | Database engine type | |
| image | No | Docker image (e.g. postgres:16-alpine) | |
| reveal | No | Reveal redacted secret values in the response (default false; the call is audited) | |
| instance | Yes | REQUIRED — which Coolify instance to mutate: 'prod' (Hetzner VPS) or 'dev' (local OrbStack VM). No default: state the target explicitly so a write never lands on prod by accident. | |
| is_public | No | Expose publicly (default: false — internal only) | |
| description | No | Database description | |
| public_port | No | Public port if is_public=true | |
| server_uuid | Yes | Server UUID | |
| project_uuid | Yes | UUID of the target project | |
| destination_uuid | Yes | Destination UUID | |
| environment_name | No | Environment name | production |