create_dockerimage_application
Deploy containerized applications from Docker images to Coolify PaaS environments by specifying project, server, ports, and image details.
Instructions
Create a new application from a Docker image
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| project_uuid | Yes | Project UUID | |
| environment_name | Yes | Environment name | |
| environment_uuid | No | Environment UUID (optional) | |
| server_uuid | Yes | Server UUID | |
| destination_uuid | No | Destination UUID (optional if server has single destination) | |
| docker_registry_image_name | Yes | Docker image name (e.g., "nginx", "nginx:latest", "nginx:1.21") | |
| docker_registry_image_tag | No | Docker image tag (optional if included in image name) | |
| ports_exposes | Yes | Ports to expose (e.g., "3000,8080") | |
| name | No | Application name (optional, auto-generated if not provided) | |
| description | No | Application description | |
| instant_deploy | No | Deploy immediately after creation |
Implementation Reference
- src/tools/handlers.ts:197-204 (handler)Switch case handler that validates required input parameters and calls the Coolify API POST /applications/dockerimage endpoint to create an application from a Docker image.case 'create_dockerimage_application': requireParam(args, 'project_uuid'); requireParam(args, 'environment_name'); requireParam(args, 'server_uuid'); requireParam(args, 'docker_registry_image_name'); requireParam(args, 'docker_registry_image_tag'); requireParam(args, 'ports_exposes'); return client.post('/applications/dockerimage', args);
- src/tools/definitions.ts:374-392 (schema)Tool definition including name, description, and detailed input schema with properties and required fields for creating a Docker image application.name: 'create_dockerimage_application', description: 'Create a new application from a Docker image', inputSchema: { type: 'object', properties: { project_uuid: { type: 'string', description: 'Project UUID' }, environment_name: { type: 'string', description: 'Environment name' }, environment_uuid: { type: 'string', description: 'Environment UUID (optional)' }, server_uuid: { type: 'string', description: 'Server UUID' }, destination_uuid: { type: 'string', description: 'Destination UUID (optional if server has single destination)' }, docker_registry_image_name: { type: 'string', description: 'Docker image name (e.g., "nginx", "nginx:latest", "nginx:1.21")' }, docker_registry_image_tag: { type: 'string', description: 'Docker image tag (optional if included in image name)' }, ports_exposes: { type: 'string', description: 'Ports to expose (e.g., "3000,8080")' }, name: { type: 'string', description: 'Application name (optional, auto-generated if not provided)' }, description: { type: 'string', description: 'Application description' }, instant_deploy: { type: 'boolean', description: 'Deploy immediately after creation', default: false } }, required: ['project_uuid', 'environment_name', 'server_uuid', 'docker_registry_image_name', 'ports_exposes'] }