Actions54
- Application Actions
- Database Actions
- Deployment Actions
- Project Actions
- Server Actions
- Service Actions
- Team Actions
Database → Create
AI-generatedSummary
Create a new database on a specified server within a chosen project and environment, supporting multiple database types such as PostgreSQL, Redis, MySQL, MariaDB, MongoDB, and others.
Inputs
- Database Type (required) — Select the type of database to create (e.g., PostgreSQL, Redis, MySQL, etc.).
- Server UUID (required) — Specify the server UUID where the database will be created, selectable from a list or by direct input.
- Project UUID (required) — Specify the project UUID under which the database will be created, selectable from a list or by direct input.
- Environment Name (required) — Provide the name of the environment for the database (default is 'production').
- Name — The name of the database to create.
- Instant Deploy — Boolean flag indicating whether to start the database immediately after creation (default true).
- Additional Fields — Optional additional parameters such as description, Docker image, public accessibility settings, environment UUID, and database-specific credentials (e.g., user, password) depending on the selected database type.
Output shape
a single record representing the created database
The operation returns the created database object from the Coolify API. The exact fields depend on the API response. The request sends a POST to
/api/v1/databases/{databaseType}with the provided parameters in the body.
Examples
Example 1: Create a PostgreSQL database named 'mydb' on a specific server and project in the production environment, starting it immediately.
Database Type: PostgreSQL, Server UUID: selected from list, Project UUID: selected from list, Environment Name: 'production', Name: 'mydb', Instant Deploy: true, plus optional PostgreSQL user and password fields.