Coolify icon

Coolify

Interact with Coolify API

Overview

This node integrates with the Coolify API to create an application based on a selected template. It allows users to specify the server and project where the application will be created, choose a predefined template, and provide configuration details specific to that template. This is particularly useful for automating deployment workflows, such as setting up WordPress sites or other templated applications quickly and consistently.

Practical examples include:

  • Creating a new WordPress application with custom admin credentials and database settings.
  • Deploying standardized application templates across different servers and projects without manual setup.
  • Automating infrastructure provisioning in CI/CD pipelines by programmatically creating applications from templates.

Properties

Name Meaning
Server Name or ID Select the target server from a list or specify its ID where the application will be deployed.
Project Name or ID Select the project under which the application will be created, either from a list or by specifying an ID.
Name The name to assign to the new application.
Template Name or ID Choose the application template to use for creation, either from a list or by specifying an ID.
Template Configuration A collection of optional configuration parameters specific to the chosen template. For WordPress, includes:
- Admin Email
- Admin Password
- Admin Username
- Database Name
- Database User
- Database Password
- Table Prefix

Output

The node outputs a JSON array containing the response data from the Coolify API after creating the application. This typically includes details about the newly created application such as its ID, status, and configuration summary.

If the operation supports binary data output (not indicated here), it would represent files or artifacts related to the application creation process.

Dependencies

  • Requires an active connection to the Coolify API via an API key credential configured in n8n.
  • The node dynamically loads options for servers, projects, and templates by querying the Coolify API.
  • Proper permissions on the Coolify account are necessary to create applications and access related resources.

Troubleshooting

  • Common issues:
    • Failure to load servers, projects, or templates usually indicates network issues or invalid API credentials.
    • Errors during application creation may result from missing required fields or invalid template configurations.
  • Error messages:
    • "The resource \"application\" is not implemented!" — indicates a misconfiguration or unsupported resource selection.
    • "The operation \"createTemplate\" is not implemented!" — suggests the operation name might be incorrect or not supported.
  • Resolutions:
    • Verify API credentials and network connectivity.
    • Ensure all required properties are provided and valid.
    • Confirm that the selected template exists and is accessible.

Links and References

Discussion