composify

composify is a cursor rule for Cursor from HowieDuhzit/CoolifyMCP. It costs 669 tokens per session, scanned A, original, MIT.

A rule reference for deploying Docker Compose applications through the Coolify API. Docker Compose is a format for defining applications made of multiple containers, and Coolify is a platform for deploying them.

In plain words
What is it for?
Use it when creating or deploying Docker Compose applications through Coolify's API.
Why use it?
It explains required API fields, encoding, and validation rules that can otherwise cause deployment requests to fail.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Use it when creating or deploying Docker Compose applications through Coolify's API.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/howieduhzit/coolifymcp/composify
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/HowieDuhzit/CoolifyMCP

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for composify

README.md
[![agentmods](https://agentmods.dev/badge/rules/howieduhzit/coolifymcp/composify/github.svg)](https://agentmods.dev/rules/howieduhzit/coolifymcp/composify)
Your own site
<a href="https://agentmods.dev/rules/howieduhzit/coolifymcp/composify"><img src="https://agentmods.dev/badge/rules/howieduhzit/coolifymcp/composify/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for composify

Your own site · 80×15
<a href="https://agentmods.dev/rules/howieduhzit/coolifymcp/composify"><img src="https://agentmods.dev/badge/rules/howieduhzit/coolifymcp/composify.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 669 This file is loaded in full into every session.
When invoked 669 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00669 $0.00669
Opus 5.5 $0.00268 $0.00268
Sonnet 5.5 $0.00134 $0.00134
Haiku 4.5 $0.00067 $0.00067

Measured 1mo ago against content hash 8ee0907c5b2d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

composify scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/composify.mdc · 53 lines

What it actually says

Docker Compose Deployment in Coolify API How Docker Compose Deployment Works Docker Compose deployment in Coolify operates through a dedicated API endpoint that handles the creation and deployment of applications based on Docker Compose files. The process follows these key steps:

API Endpoint and Request Structure The primary endpoint for Docker Compose deployments is POST /applications/dockercompose ApplicationsController.php:670-732 . This endpoint requires specific mandatory fields including project_uuid, server_uuid, environment_name or environment_uuid, and docker_compose_raw ApplicationsController.php:686-700 .

Base64 Encoding Requirement A critical requirement for Docker Compose deployment is that the docker_compose_raw field must be base64 encoded ApplicationsController.php:1414-1431 . The system validates this encoding and will reject requests with improperly encoded content.

Validation Process Coolify implements comprehensive validation for Docker Compose files using the validateComposeFile function docker.php:1056-1090 . This function creates a temporary file on the server, uses Docker's built-in validation through docker compose config, and ensures the compose file syntax is correct before proceeding with deployment.

Deployment Processing After successful validation, the system uses the LoadComposeFile action to process the compose file LoadComposeFile.php:8-16 . For applications deployed from Git repositories, the system can load compose files directly from the repository using sparse checkout techniques Application.php:1359-1450 .

Recommended Docker Compose File Syntax Basic Service Structure Coolify follows standard Docker Compose syntax with additional conventions for optimal integration. A recommended basic structure includes services with proper environment variable handling documenso.yaml:7-48 .

Special Environment Variables Coolify uses special environment variable patterns that are automatically processed during deployment:

SERVICE_FQDN_* for domain configuration SERVICE_PASSWORD_* for automatic password generation SERVICE_USER_* for user credentials SERVICE_BASE64_* for base64-encoded secrets documenso.yaml:13-28 Health Check Configuration Health checks are strongly recommended and should follow Docker Compose standards with appropriate test commands, intervals, and retry configurations documenso.yaml:29-48 .

Volume and Bind Mount Syntax Coolify supports both standard volumes and bind mounts with special content injection capabilities for configuration files filebrowser.yaml:12-31 .

Service Dependencies Dependencies between services should be properly defined using depends_on with appropriate conditions like service_healthy documenso.yaml:10-12 .

Deployment Workflow API Request Processing The deployment process begins with API request validation through the create_application method with type 'dockercompose' ApplicationsController.php:1378-1450 . The system creates a Service model rather than an Application model for Docker Compose deployments.

Instant Deployment Option The API supports an instant_deploy parameter that can trigger immediate deployment after successful creation ApplicationsController.php:1446-1448 .

Background Job Processing Actual deployment is handled by background jobs that process the compose file, generate appropriate Docker commands, and manage the deployment lifecycle through the ApplicationDeploymentJob ApplicationDeploymentJob.php:39-100 .

Notes Docker Compose deployment in Coolify requires careful attention to the base64 encoding requirement and proper use of Coolify's special environment variable patterns. The system provides robust validation and supports both immediate and queued deployment options. Templates in the repository serve as excellent examples of recommended syntax and patterns for successful deployments.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 53 lines · 669 tokens per session scan A 8ee0907c5b2d

Subscribe to this mod's changes

composify is a cursor rule published in the GitHub repository HowieDuhzit/CoolifyMCP (6 stars, last pushed 1y ago), licensed MIT. It adds 669 tokens to every session, about $0.0027 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.