coolify-compose

coolify-compose is a skill for Claude Code, Codex from Kastalien-Research/thoughtbox. It costs 46 tokens per session (2,846 once invoked), scanned A, original, MIT.

A guide for converting Docker Compose files into templates that can be deployed with Coolify, a platform for running applications on your own servers. It covers Coolify's two ways to deploy Compose services and their limitations.

In plain words
What is it for?
Use it to prepare Compose services for Coolify, add generated credentials or URLs, and troubleshoot Coolify Compose configuration errors.
Why use it?
It helps avoid deployment errors caused by differences between ordinary Docker Compose files and what Coolify accepts. It also explains when repository-based deployment is needed.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/kastalien-research/thoughtbox/coolify-compose
Any agent
npx skills add Kastalien-Research/thoughtbox --skill coolify-compose
Clone the repo
git clone --depth 1 https://github.com/Kastalien-Research/thoughtbox

Made for: Claude Code, Codex.

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 coolify-compose

README.md
[![agentmods](https://agentmods.dev/badge/skills/kastalien-research/thoughtbox/coolify-compose.svg)](https://agentmods.dev/skills/kastalien-research/thoughtbox/coolify-compose)
Your own site
<a href="https://agentmods.dev/skills/kastalien-research/thoughtbox/coolify-compose"><img src="https://agentmods.dev/badge/skills/kastalien-research/thoughtbox/coolify-compose.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,846 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00046 $0.02846
Opus 5 $0.00023 $0.01423
Sonnet 5 $0.00009 $0.00569
Haiku 4.5 $0.00005 $0.00285

Measured yesterday against content hash 835a30dcba61, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

coolify-compose scanned grade A with 1 finding 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 yesterday.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/health"]
Origin

Copies of this mod

1 near-identical copy found in the catalogue:

apps/web/.roo/skills/coolify-compose/SKILL.md · 390 lines

How it starts

The opening of the file, as written. The whole thing — 390 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Coolify Docker Compose

Convert standard Docker Compose files into Coolify-compatible templates with automatic credential generation, dynamic URLs, and one-click deployment.

Two Deployment Modes

Coolify supports two ways to deploy compose files with different capabilities:

1. Raw Compose (Paste Content)

Paste compose YAML directly into Coolify's UI. Limited feature set:

Feature Supported
image: ✅ Yes
build: ❌ No - must use pre-built images
External config files ❌ No - must use inline content:
YAML anchors (&, *) ✅ Yes - resolved by YAML parser
Coolify magic variables ✅ Yes
content: for inline files ✅ Yes

Use when: Quick deployments, simple services, no custom images needed.

2. Repository Mode (Git URL)

Point Coolify to a Git repository containing your compose file. Full Docker Compose features:

Feature Supported
image: ✅ Yes
build: ✅ Yes - builds from Dockerfile in repo
External config files ✅ Yes - relative paths work
Coolify magic variables ✅ Yes
content: for inline files ✅ Yes

Use when: Custom images needed, complex multi-file setups, existing docker-compose.yml in a repo.

Repository setup:

my-service/
├── compose.yml          # or docker-compose.yml
├── custom-image/
│   ├── Dockerfile
│   └── config.sql
└── other-files/
# compose.yml - can use build:
services:
  app:
    build:
      context: ./custom-image
      dockerfile: Dockerfile

Which Mode to Use?

Original compose has... Recommended mode
Only image: references Either works
build: directives Repository mode
External config files to mount Repository mode (or use content: in raw)
Single simple service Raw mode is faster

Quick Start

Every Coolify template needs a header and magic variables:

# documentation: https://example.com/docs
# slogan: Brief description of the service
# category: backend
# tags: api, database, docker
# logo: svgs/myservice.svg
# port: 3000

services:
  app:
    image: myapp:latest
    environment:
      - SERVICE_URL_APP_3000           # Generates URL, routes proxy to port 3000
      - DATABASE_URL=postgres://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@db:5432/mydb
    depends_on:
      db:
        condition: service_healthy
    healthcheck:
      test: ["CMD", "wget", "-q", "--spider", "http://localhost:3000/health"]
      interval: 5s
      timeout: 10s
      retries: 10

  db:
    image: postgres:16-alpine
    environment:
      - POSTGRES_USER=$SERVICE_USER_POSTGRES
      - POSTGRES_PASSWORD=$SERVICE_PASSWORD_POSTGRES
    healthcheck:
      test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER}"]
      interval: 5s
      timeout: 10s
      retries: 10

Read the full file on GitHub · 390 lines

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. yesterday First seen · 390 lines · 46 tokens per session scan A 835a30dcba61

Subscribe to this mod's changes

coolify-compose is a skill published in the GitHub repository Kastalien-Research/thoughtbox (64 stars, last pushed 1mo ago), licensed MIT. It adds 46 tokens to every session and 2,846 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

deploy

Build, deploy, verify, or roll back this server on the host. Use when asked to ship a change, rebuild a container, update nginx, or diagnose why the service is down. Covers the memory-capped build, the reload-not-restart rule, and the unhealthy-container failure mode.

HalemoGPA/whatsapp-mcp-server · 61 tokens

talos-operations

Operate a Talos Linux Kubernetes cluster with talosctl: health checks, etcd snapshot and restore, node upgrade, and kubeconfig rotation.

rmednitzer/aiops-mcp · 34 tokens

k8s-ops

Opinionated multi-step Kubernetes workflows on top of the k8s-mcp server. Encodes tool-sequencing logic and failure-mode decision trees for deploying from a repo, debugging pods/rollouts, performing safe restarts, and auditing cluster posture. Use when the user asks to deploy, diagnose, restart, roll out, or audit…

jingyanjiang/k8s-mcp · 77 tokens

infra-deploy

Infrastructure deployment for VPS, Docker, and cloud platforms. Activates for "deploy", "setup server", "docker", "coolify", "VPS", "SSH", "nginx", "production", "hosting" requests.

abdullah1854/MCPGateway · 51 tokens

openshell-cli

Guide agents through using the OpenShell CLI (openshell) for sandbox management, gateway registration, provider configuration and refresh, policy iteration, settings, service exposure, BYOC workflows, and inference routing. Covers basic through advanced multi-step workflows. Trigger keywords - openshell, sandbox…

NVIDIA/OpenShell · 127 tokens

langbot-deploy

Deploy and configure a LangBot instance — Docker / Docker Compose, Kubernetes, the config.yaml model, the Box sandbox runtime, the plugin runtime, and the global API key. Use when installing, deploying, upgrading, or configuring LangBot in production or self-hosted environments. Triggers on "deploy langbot", "langbot…

langbot-app/LangBot · 104 tokens