[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EGP4P0N015QWBFRM8JKXVY":3,"skill-same:01M7EGP4P0N015QWBFRM8JKXVY":83},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":6,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M7EGP4P0N015QWBFRM8JKXVY","coolify",null,"Use when self-hosting apps and databases with Coolify on a VPS you own — install, first-admin lockdown, Git-to-deploy (Nixpacks\u002FDockerfile\u002Fcompose), managed Postgres\u002FRedis, scheduled S3 backups, domains + auto-SSL. NOT a PaaS someone else runs (that is `railway`), NOT sizing\u002Fhardening the box (that is `hetzner`), NOT authoring Dockerfiles (that is `docker`).","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fcoolify\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: coolify\ndescription: \"Use when self-hosting apps and databases with Coolify on a VPS you own — install, first-admin lockdown, Git-to-deploy (Nixpacks\u002FDockerfile\u002Fcompose), managed Postgres\u002FRedis, scheduled S3 backups, domains + auto-SSL. NOT a PaaS someone else runs (that is `railway`), NOT sizing\u002Fhardening the box (that is `hetzner`), NOT authoring Dockerfiles (that is `docker`).\"\ntags: [coolify, self-hosting, paas, vps, docker, deployment, devops]\nrecommends: [hetzner, digitalocean, docker, postgresdb, backups, domains-dns, github-actions]\norigin: risco\n---\n\n# Coolify — own-the-box PaaS on your VPS\n\nCoolify is an open-source, self-hostable control plane that turns a plain Linux VPS into a Vercel\u002FHeroku\nreplacement: Git-to-deploy, managed databases, automatic SSL, scheduled backups — for a flat VPS bill\ninstead of per-request metering. This skill is operational. It produces the exact install one-liner, the\nport matrix, env wiring, a lint-clean compose artifact, and a backup-to-S3 cron with a tested restore.\nCoolify 4.x (stable in 2026); v4.1 added Railpack, structured audit logging, and a read-only MCP server.\n\n## Mental model — read this first\n\n1. **Coolify is the control plane, not the box.** It runs *on* a VPS you provisioned elsewhere. Hardware\n   sizing, the cloud firewall, SSH hardening, OS patching → that is the VPS layer (hetzner \u002F\n   digitalocean), not this skill. Coolify orchestrates what runs on the box.\n2. **You own the data and the uptime now.** No vendor takes nightly snapshots for you. So backups are\n   non-optional and a backup you have never restored is not a backup (see the backup section).\n3. **Everything underneath is Docker.** Coolify generates compose\u002FDockerfile runs and a Traefik proxy. So\n   every Docker rule still applies — named volumes, healthchecks, pinned images, env-injected secrets.\n   For image-authoring depth (multi-stage, layer caching) go to the `docker` skill; here we wire it.\n4. **First account to register owns the instance — forever.** There is no \"admin invite\" recovery if a\n   stranger registers first. Claim it within seconds of install (see step 4).\n\n## Decision — where should this app actually run?\n\n| Option | Who owns the box | Cost shape | Ops burden | Choose when |\n| --- | --- | --- | --- | --- |\n| **Coolify self-hosted** (this skill) | You (your VPS) | Flat VPS\u002Fmonth | You patch + back up | Predictable bill, data sovereignty, many apps on one box |\n| **Coolify Cloud** | You bring the server; they host the control plane | VPS + small SaaS fee | They run the control plane | Want Coolify UX without babysitting the dashboard's own uptime |\n| **Managed PaaS** (railway \u002F render \u002F fly-io \u002F vercel \u002F netlify) | The provider | Per-usage, scales up fast | Near-zero | Spiky scale-to-zero, no box to own — the inverse of Coolify |\n\nChoose Coolify when a few always-on apps on a known-cost box beats per-request metering. If the user wants\n`git push` and never touches a server, that is railway — route there.\n\n## Install — the 6-minute path\n\nProvision the box first (this is the hetzner \u002F digitalocean step, not this skill). Floor is 2 CPU \u002F 2 GB\nRAM \u002F 30 GB disk; Coolify itself idles around 1 GB RAM. For comfortable multi-app production aim for\n4 vCPU \u002F 8 GB \u002F 100 GB NVMe. Ubuntu 22.04\u002F24.04 LTS recommended (Debian, Fedora\u002FAlma\u002FRocky, Alpine, Arch,\nRaspberry Pi OS 64-bit also supported; non-LTS needs manual steps — see references).\n\n```bash\n# 1. SSH in AS ROOT. Non-root is not fully supported by the installer — log in as root.\nssh root@\u003Cserver-ip>\n\n# 2. One-liner install (root). Takes ~2–5 min: installs Docker, sets up Coolify's own stack.\ncurl -fsSL https:\u002F\u002Fcdn.coollabs.io\u002Fcoolify\u002Finstall.sh | bash\n```\n\n```text\n# 3. The installer prints the dashboard URL: http:\u002F\u002F\u003Cserver-ip>:8000\n# 4. CRITICAL — within seconds, open http:\u002F\u002F\u003Cserver-ip>:8000 and REGISTER.\n#    That first account becomes the permanent root admin of the instance. First-come-owns-the-box;\n#    there is no later \"claim ownership\" flow. Do not walk away between step 2 and this.\n# 5. In the dashboard: set the instance FQDN (coolify.example.com) and force HTTPS, so you stop\n#    hitting the raw :8000 IP and the dashboard itself gets a real certificate.\n```\n\nWhy root: the installer wires Docker and system services; the docs state non-root is not fully supported.\nWhy claim immediately: the registration page is open until someone takes it.\n\nFull install transcript, non-LTS\u002Fother-OS steps, dashboard-domain setup, Traefik (default) vs Caddy,\nwildcard domains + the DNS-01 challenge, and common SSL failures with their fixes →\n`references\u002Finstall-and-proxy.md`.\n\n## Port & firewall matrix\n\nSet these at the cloud firewall (hetzner\u002Fdigitalocean layer) AND keep them in mind on the box.\n\n| Port | Purpose | Exposure |\n| --- | --- | --- |\n| 22 | SSH | Restrict to your IP \u002F VPN; key-only |\n| 8000 | Coolify dashboard | **Restrict** to your IP after setup, or front with the proxy on a FQDN; never leave open to the world |\n| 80 | Proxy HTTP (Traefik) → redirects to 443 | Public |\n| 443 | Proxy HTTPS, app traffic + Let's Encrypt | Public |\n| 6001 | Realtime \u002F websocket | Open as the dashboard needs (same audience as 8000) |\n| 6002 | Realtime \u002F terminal websocket | Same as 6001 |\n\nRule: 80\u002F443 are the only ports the public should reach. 8000\u002F6001\u002F6002 are operator surface — lock them\nto your IP or put the dashboard behind its FQDN. Why: an open :8000 plus an unclaimed instance is a\ntakeover; an open :8000 on a claimed instance is still your full control plane exposed to brute force.\n\n## Deploy an app\n\nPick the build pack first, then wire source → env → storage → domain.\n\n| Build pack | Use when | Note |\n| --- | --- | --- |\n| **Nixpacks** (default) | Standard app, you want zero config | Auto-detects the language\u002Fruntime; start here |\n| **Railpack** (v4.1, beta) | Need build-time env vars, config merge, or multi-stage control | Newer; reach for it when Nixpacks can't express the build |\n| **Dockerfile** | You already have a Dockerfile \u002F want full build control | You own the build; pin a base image |\n| **docker-compose** | Multi-service app deployed as a unit | Coolify runs your compose; this is the verify.sh-linted artifact shape |\n\nThen:\n\n1. **Connect the Git source** — GitHub\u002FGitLab app or a deploy key; pick branch; enable auto-deploy on push\n   (or trigger from CI — that wiring is the `github-actions` skill).\n2. **Set env vars as Coolify secrets** — inject at runtime via the UI\u002FAPI; never bake secrets into the\n   image or commit them to the compose. Why: a baked secret ships in every image layer and leaks on pull.\n3. **Add persistent storage** — any path that must survive a redeploy (uploads, sqlite) gets a named\n   volume. A container without one loses its writes on every recreate.\n4. **Attach the domain + SSL** — add `app.example.com`, point its DNS A record at the box (DNS itself is\n   the `domains-dns` skill), and the Traefik proxy provisions Let's Encrypt automatically on ports 80\u002F443.\n\nBuild-pack decision deep-dive plus a worked, lint-clean `docker-compose.yml` (env-ref secrets, named\nvolumes, healthcheck, pinned image) — the verify.sh target → `references\u002Fdeploy-recipes.md`.\n\n## Managed databases\n\nCoolify provisions Postgres, MySQL, MariaDB, MongoDB, Redis (and more) in-product — one-click, with\ngenerated credentials.\n\n- **Connect apps over the internal Docker network hostname**, not a public IP. Coolify gives each DB an\n  internal service name; the app reaches it on the private network. Why: zero public attack surface.\n- **Do NOT publicly expose the DB port** unless you genuinely need an external client. If you must, bind\n  it deliberately and firewall it to known IPs — an open 5432\u002F3306 is scanned within minutes.\n- **Every DB gets a named volume.** Without it, recreating the service wipes the data. This is the single\n  most common Coolify data-loss footgun.\n\nThis skill provisions and connects the DB; it does not teach SQL, indexing, or query tuning — that is the\n`postgresdb` skill. Per-engine details and connection strings → `references\u002Fdatabases-and-backups.md`.\n\n## Backups to S3 — non-negotiable\n\nYou own the data now. Coolify runs scheduled dumps (`pg_dump` \u002F `mysqldump` \u002F `mongodump`) on a cron\nexpression, stores them locally, and optionally pushes to S3-compatible storage: AWS S3, Cloudflare R2,\nBackblaze B2, MinIO, Wasabi.\n\n1. **Add an S3 destination** — endpoint, region, bucket, access key\u002Fsecret (as Coolify secrets, never in\n   a committed file). Off-box storage is the point: a backup on the same disk dies with the disk.\n2. **Set the cron schedule** — e.g. `0 3 * * *` for nightly 03:00. Match frequency to how much data you\n   can afford to lose (RPO doctrine across systems is the `backups` skill; here we wire the in-product job).\n3. **Set retention** — keep N days\u002Fcopies so the bucket doesn't grow unbounded.\n4. **Run the restore drill — once, before you need it.** Download a dump, decompress, replay it into a\n   throwaway DB, confirm the row counts. An untested backup is a guess. Schedule a recurring drill.\n\nS3 destination setup for R2\u002FB2\u002FMinIO\u002FWasabi\u002FAWS, per-engine dump\u002Frestore commands, retention, the\nstep-by-step restore runbook and its consistency caveats → `references\u002Fdatabases-and-backups.md`.\n\n## Operate the box\n\n- **Resource planning.** Coolify idles ~1 GB RAM; budget the rest for your apps + databases. Multi-app\n  sweet spot is 4 vCPU \u002F 8 GB \u002F 100 GB NVMe. Watch RAM headroom before adding the next app.\n- **Updates.** Update Coolify from the dashboard's settings; pin\u002Fsnapshot before a major bump.\n- **Logs & audit.** Per-resource logs live in the UI. v4.1 adds a structured audit log — use it to see who\n  changed what.\n- **MCP server (v4.1, read-only).** Coolify exposes an instance-level MCP server with read-only tools for\n  AI-agent integration. Useful for letting an agent inspect status; it is read-only by design — do not\n  treat it as a deploy channel, and still lock down the network in front of it.\n\n## Anti-patterns → STOP\n\n| Rationalization | Reality → STOP |\n| --- | --- |\n| \"I'll install with my sudo user, root feels risky\" | The installer wires Docker + system services and the docs say non-root is not fully supported. SSH in as root for install. |\n| \"I'll register the admin account later\" | First account to hit `:8000` owns the instance permanently. A stranger registering first = takeover. Claim it within seconds. |\n| \"Leave :8000 open, it's password-protected\" | That is your full control plane exposed to brute force. Restrict 8000\u002F6001\u002F6002 to your IP; only 80\u002F443 are public. |\n| \"Pin the app image to `:latest`, it's simpler\" | `:latest` floats — a silent base change breaks a redeploy you can't reproduce. Pin a tag or digest. |\n| \"The database doesn't need a named volume yet\" | Recreating the service wipes an anonymous volume. Data gone. Named volume from day one. |\n| \"Put the DB password in the compose so deploys are reproducible\" | Secrets in a committed file leak in git history and image layers. Inject via Coolify env\u002Fsecrets, env-ref only. |\n| \"Expose 5432 so I can connect from my laptop\" | An open DB port is scanned in minutes. Use the internal hostname; if you truly need external access, firewall it to known IPs. |\n| \"Backups are configured, we're covered\" | A backup you've never restored is a guess. Run the restore drill before you need it. |\n| \"Coolify will harden the server for me\" | Coolify is the control plane, not the OS-hardening layer. Firewall\u002FSSH\u002Fpatching is the VPS skill (hetzner\u002Fdigitalocean). |\n| \"Use Coolify because I just want to git push and forget the server\" | That's the opposite of own-the-box. Use a managed PaaS — railway. |\n\n## Verify\n\nRun `scripts\u002Fverify.sh` against your project (or this skill's `references\u002F`). It statically lints the\nexample\u002Fyour `docker-compose.y*ml`: fails on a hardcoded secret literal (must be env-ref), a DB service\nwithout a named volume, a missing `healthcheck:`, or a floating `:latest` tag on a build-context service;\nand confirms the canonical port matrix (8000\u002F80\u002F443\u002F6001\u002F6002) is documented. Read-only, no network, no\nlive deploy. Exits 0 on a clean\u002Fempty target.\n\n## Project grounding (02-DOCS + CLAUDE.md)\n\nWhen this skill runs in a project with a `02-DOCS\u002F` layer (the harness Karpathy wiki), record this\ninstance's deploy topology there and index it in `02-DOCS\u002Fwiki\u002Findex.md`, so the next agent inherits it\ninstead of re-deriving it.\n\n1. **Find the article** `02-DOCS\u002Fwiki\u002Fstack\u002Fcoolify.md`, indexed in `02-DOCS\u002Fwiki\u002Findex.md` (the Knowledge map index; root `CLAUDE.md` points to it).\n2. **If missing or stale**, create\u002Fupdate it with the real choices — the box (provider\u002Fspecs), instance\n   FQDN, which apps\u002Fdatabases run on it, build packs in use, the backup destination + cron + retention,\n   and the port\u002Ffirewall decisions — then index it in `02-DOCS\u002Fwiki\u002Findex.md` (the Knowledge map; root `CLAUDE.md` keeps only a short pointer to it).\n3. **Read it first on every use** and stay consistent; when the topology changes, update the article (bump\n   its `Updated` date) in the same change. Never commit credentials here — record *where* secrets live,\n   not their values.\n\nNo `02-DOCS\u002F` layer? Skip silently. Topology is recorded, not gated — never block the task on this.\n","# Coolify — own-the-box PaaS on your VPS\n\nCoolify is an open-source, self-hostable control plane that turns a plain Linux VPS into a Vercel\u002FHeroku\nreplacement: Git-to-deploy, managed databases, automatic SSL, scheduled backups — for a flat VPS bill\ninstead of per-request metering. This skill is operational. It produces the exact install one-liner, the\nport matrix, env wiring, a lint-clean compose artifact, and a backup-to-S3 cron with a tested restore.\nCoolify 4.x (stable in 2026); v4.1 added Railpack, structured audit logging, and a read-only MCP server.\n\n## Mental model — read this first\n\n1. **Coolify is the control plane, not the box.** It runs *on* a VPS you provisioned elsewhere. Hardware\n   sizing, the cloud firewall, SSH hardening, OS patching → that is the VPS layer (hetzner \u002F\n   digitalocean), not this skill. Coolify orchestrates what runs on the box.\n2. **You own the data and the uptime now.** No vendor takes nightly snapshots for you. So backups are\n   non-optional and a backup you have never restored is not a backup (see the backup section).\n3. **Everything underneath is Docker.** Coolify generates compose\u002FDockerfile runs and a Traefik proxy. So\n   every Docker rule still applies — named volumes, healthchecks, pinned images, env-injected secrets.\n   For image-authoring depth (multi-stage, layer caching) go to the `docker` skill; here we wire it.\n4. **First account to register owns the instance — forever.** There is no \"admin invite\" recovery if a\n   stranger registers first. Claim it within seconds of install (see step 4).\n\n## Decision — where should this app actually run?\n\n| Option | Who owns the box | Cost shape | Ops burden | Choose when |\n| --- | --- | --- | --- | --- |\n| **Coolify self-hosted** (this skill) | You (your VPS) | Flat VPS\u002Fmonth | You patch + back up | Predictable bill, data sovereignty, many apps on one box |\n| **Coolify Cloud** | You bring the server; they host the control plane | VPS + small SaaS fee | They run the control plane | Want Coolify UX without babysitting the dashboard's own uptime |\n| **Managed PaaS** (railway \u002F render \u002F fly-io \u002F vercel \u002F netlify) | The provider | Per-usage, scales up fast | Near-zero | Spiky scale-to-zero, no box to own — the inverse of Coolify |\n\nChoose Coolify when a few always-on apps on a known-cost box beats per-request metering. If the user wants\n`git push` and never touches a server, that is railway — route there.\n\n## Install — the 6-minute path\n\nProvision the box first (this is the hetzner \u002F digitalocean step, not this skill). Floor is 2 CPU \u002F 2 GB\nRAM \u002F 30 GB disk; Coolify itself idles around 1 GB RAM. For comfortable multi-app production aim for\n4 vCPU \u002F 8 GB \u002F 100 GB NVMe. Ubuntu 22.04\u002F24.04 LTS recommended (Debian, Fedora\u002FAlma\u002FRocky, Alpine, Arch,\nRaspberry Pi OS 64-bit also supported; non-LTS needs manual steps — see references).\n\n```bash\n# 1. SSH in AS ROOT. Non-root is not fully supported by the installer — log in as root.\nssh root@\u003Cserver-ip>\n\n# 2. One-liner install (root). Takes ~2–5 min: installs Docker, sets up Coolify's own stack.\ncurl -fsSL https:\u002F\u002Fcdn.coollabs.io\u002Fcoolify\u002Finstall.sh | bash\n```\n\n```text\n# 3. The installer prints the dashboard URL: http:\u002F\u002F\u003Cserver-ip>:8000\n# 4. CRITICAL — within seconds, open http:\u002F\u002F\u003Cserver-ip>:8000 and REGISTER.\n#    That first account becomes the permanent root admin of the instance. First-come-owns-the-box;\n#    there is no later \"claim ownership\" flow. Do not walk away between step 2 and this.\n# 5. In the dashboard: set the instance FQDN (coolify.example.com) and force HTTPS, so you stop\n#    hitting the raw :8000 IP and the dashboard itself gets a real certificate.\n```\n\nWhy root: the installer wires Docker and system services; the docs state non-root is not fully supported.\nWhy claim immediately: the registration page is open until someone takes it.\n\nFull install transcript, non-LTS\u002Fother-OS steps, dashboard-domain setup, Traefik (default) vs Caddy,\nwildcard domains + the DNS-01 challenge, and common SSL failures with their fixes →\n`references\u002Finstall-and-proxy.md`.\n\n## Port & firewall matrix\n\nSet these at the cloud firewall (hetzner\u002Fdigitalocean layer) AND keep them in mind on the box.\n\n| Port | Purpose | Exposure |\n| --- | --- | --- |\n| 22 | SSH | Restrict to your IP \u002F VPN; key-only |\n| 8000 | Coolify dashboard | **Restrict** to your IP after setup, or front with the proxy on a FQDN; never leave open to the world |\n| 80 | Proxy HTTP (Traefik) → redirects to 443 | Public |\n| 443 | Proxy HTTPS, app traffic + Let's Encrypt | Public |\n| 6001 | Realtime \u002F websocket | Open as the dashboard needs (same audience as 8000) |\n| 6002 | Realtime \u002F terminal websocket | Same as 6001 |\n\nRule: 80\u002F443 are the only ports the public should reach. 8000\u002F6001\u002F6002 are operator surface — lock them\nto your IP or put the dashboard behind its FQDN. Why: an open :8000 plus an unclaimed instance is a\ntakeover; an open :8000 on a claimed instance is still your full control plane exposed to brute force.\n\n## Deploy an app\n\nPick the build pack first, then wire source → env → storage → domain.\n\n| Build pack | Use when | Note |\n| --- | --- | --- |\n| **Nixpacks** (default) | Standard app, you want zero config | Auto-detects the language\u002Fruntime; start here |\n| **Railpack** (v4.1, beta) | Need build-time env vars, config merge, or multi-stage control | Newer; reach for it when Nixpacks can't express the build |\n| **Dockerfile** | You already have a Dockerfile \u002F want full build control | You own the build; pin a base image |\n| **docker-compose** | Multi-service app deployed as a unit | Coolify runs your compose; this is the verify.sh-linted artifact shape |\n\nThen:\n\n1. **Connect the Git source** — GitHub\u002FGitLab app or a deploy key; pick branch; enable auto-deploy on push\n   (or trigger from CI — that wiring is the `github-actions` skill).\n2. **Set env vars as Coolify secrets** — inject at runtime via the UI\u002FAPI; never bake secrets into the\n   image or commit them to the compose. Why: a baked secret ships in every image layer and leaks on pull.\n3. **Add persistent storage** — any path that must survive a redeploy (uploads, sqlite) gets a named\n   volume. A container without one loses its writes on every recreate.\n4. **Attach the domain + SSL** — add `app.example.com`, point its DNS A record at the box (DNS itself is\n   the `domains-dns` skill), and the Traefik proxy provisions Let's Encrypt automatically on ports 80\u002F443.\n\nBuild-pack decision deep-dive plus a worked, lint-clean `docker-compose.yml` (env-ref secrets, named\nvolumes, healthcheck, pinned image) — the verify.sh target → `references\u002Fdeploy-recipes.md`.\n\n## Managed databases\n\nCoolify provisions Postgres, MySQL, MariaDB, MongoDB, Redis (and more) in-product — one-click, with\ngenerated credentials.\n\n- **Connect apps over the internal Docker network hostname**, not a public IP. Coolify gives each DB an\n  internal service name; the app reaches it on the private network. Why: zero public attack surface.\n- **Do NOT publicly expose the DB port** unless you genuinely need an external client. If you must, bind\n  it deliberately and firewall it to known IPs — an open 5432\u002F3306 is scanned within minutes.\n- **Every DB gets a named volume.** Without it, recreating the service wipes the data. This is the single\n  most common Coolify data-loss footgun.\n\nThis skill provisions and connects the DB; it does not teach SQL, indexing, or query tuning — that is the\n`postgresdb` skill. Per-engine details and connection strings → `references\u002Fdatabases-and-backups.md`.\n\n## Backups to S3 — non-negotiable\n\nYou own the data now. Coolify runs scheduled dumps (`pg_dump` \u002F `mysqldump` \u002F `mongodump`) on a cron\nexpression, stores them locally, and optionally pushes to S3-compatible storage: AWS S3, Cloudflare R2,\nBackblaze B2, MinIO, Wasabi.\n\n1. **Add an S3 destination** — endpoint, region, bucket, access key\u002Fsecret (as Coolify secrets, never in\n   a committed file). Off-box storage is the point: a backup on the same disk dies with the disk.\n2. **Set the cron schedule** — e.g. `0 3 * * *` for nightly 03:00. Match frequency to how much data you\n   can afford to lose (RPO doctrine across systems is the `backups` skill; here we wire the in-product job).\n3. **Set retention** — keep N days\u002Fcopies so the bucket doesn't grow unbounded.\n4. **Run the restore drill — once, before you need it.** Download a dump, decompress, replay it into a\n   throwaway DB, confirm the row counts. An untested backup is a guess. Schedule a recurring drill.\n\nS3 destination setup for R2\u002FB2\u002FMinIO\u002FWasabi\u002FAWS, per-engine dump\u002Frestore commands, retention, the\nstep-by-step restore runbook and its consistency caveats → `references\u002Fdatabases-and-backups.md`.\n\n## Operate the box\n\n- **Resource planning.** Coolify idles ~1 GB RAM; budget the rest for your apps + databases. Multi-app\n  sweet spot is 4 vCPU \u002F 8 GB \u002F 100 GB NVMe. Watch RAM headroom before adding the next app.\n- **Updates.** Update Coolify from the dashboard's settings; pin\u002Fsnapshot before a major bump.\n- **Logs & audit.** Per-resource logs live in the UI. v4.1 adds a structured audit log — use it to see who\n  changed what.\n- **MCP server (v4.1, read-only).** Coolify exposes an instance-level MCP server with read-only tools for\n  AI-agent integration. Useful for letting an agent inspect status; it is read-only by design — do not\n  treat it as a deploy channel, and still lock down the network in front of it.\n\n## Anti-patterns → STOP\n\n| Rationalization | Reality → STOP |\n| --- | --- |\n| \"I'll install with my sudo user, root feels risky\" | The installer wires Docker + system services and the docs say non-root is not fully supported. SSH in as root for install. |\n| \"I'll register the admin account later\" | First account to hit `:8000` owns the instance permanently. A stranger registering first = takeover. Claim it within seconds. |\n| \"Leave :8000 open, it's password-protected\" | That is your full control plane exposed to brute force. Restrict 8000\u002F6001\u002F6002 to your IP; only 80\u002F443 are public. |\n| \"Pin the app image to `:latest`, it's simpler\" | `:latest` floats — a silent base change breaks a redeploy you can't reproduce. Pin a tag or digest. |\n| \"The database doesn't need a named volume yet\" | Recreating the service wipes an anonymous volume. Data gone. Named volume from day one. |\n| \"Put the DB password in the compose so deploys are reproducible\" | Secrets in a committed file leak in git history and image layers. Inject via Coolify env\u002Fsecrets, env-ref only. |\n| \"Expose 5432 so I can connect from my laptop\" | An open DB port is scanned in minutes. Use the internal hostname; if you truly need external access, firewall it to known IPs. |\n| \"Backups are configured, we're covered\" | A backup you've never restored is a guess. Run the restore drill before you need it. |\n| \"Coolify will harden the server for me\" | Coolify is the control plane, not the OS-hardening layer. Firewall\u002FSSH\u002Fpatching is the VPS skill (hetzner\u002Fdigitalocean). |\n| \"Use Coolify because I just want to git push and forget the server\" | That's the opposite of own-the-box. Use a managed PaaS — railway. |\n\n## Verify\n\nRun `scripts\u002Fverify.sh` against your project (or this skill's `references\u002F`). It statically lints the\nexample\u002Fyour `docker-compose.y*ml`: fails on a hardcoded secret literal (must be env-ref), a DB service\nwithout a named volume, a missing `healthcheck:`, or a floating `:latest` tag on a build-context service;\nand confirms the canonical port matrix (8000\u002F80\u002F443\u002F6001\u002F6002) is documented. Read-only, no network, no\nlive deploy. Exits 0 on a clean\u002Fempty target.\n\n## Project grounding (02-DOCS + CLAUDE.md)\n\nWhen this skill runs in a project with a `02-DOCS\u002F` layer (the harness Karpathy wiki), record this\ninstance's deploy topology there and index it in `02-DOCS\u002Fwiki\u002Findex.md`, so the next agent inherits it\ninstead of re-deriving it.\n\n1. **Find the article** `02-DOCS\u002Fwiki\u002Fstack\u002Fcoolify.md`, indexed in `02-DOCS\u002Fwiki\u002Findex.md` (the Knowledge map index; root `CLAUDE.md` points to it).\n2. **If missing or stale**, create\u002Fupdate it with the real choices — the box (provider\u002Fspecs), instance\n   FQDN, which apps\u002Fdatabases run on it, build packs in use, the backup destination + cron + retention,\n   and the port\u002Ffirewall decisions — then index it in `02-DOCS\u002Fwiki\u002Findex.md` (the Knowledge map; root `CLAUDE.md` keeps only a short pointer to it).\n3. **Read it first on every use** and stay consistent; when the topology changes, update the article (bump\n   its `Updated` date) in the same change. Never commit credentials here — record *where* secrets live,\n   not their values.\n\nNo `02-DOCS\u002F` layer? Skip silently. Topology is recorded, not gated — never block the task on this.\n",{"name":5,"tags":24,"origin":31,"recommends":32,"description":7},[5,25,26,27,28,29,30],"self-hosting","paas","vps","docker","deployment","devops","risco",[33,34,28,35,36,37,38],"hetzner","digitalocean","postgresdb","backups","domains-dns","github-actions","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fcoolify",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill coolify",{"tool":53,"command":54},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill coolify",{"tool":56,"command":57},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill coolify","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fcoolify\u002FSKILL.md",true,[61,67,71,75,79],{"path":62,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":65,"sourceHtmlUrl":66},"evals\u002Fcases.yaml","REFERENCE","参考文档",4239,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fcoolify\u002Fevals\u002Fcases.yaml",{"path":68,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":69,"sourceHtmlUrl":70},"evals\u002FREADME.md",1512,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fcoolify\u002Fevals\u002FREADME.md",{"path":72,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":73,"sourceHtmlUrl":74},"references\u002Fdatabases-and-backups.md",4652,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fcoolify\u002Freferences\u002Fdatabases-and-backups.md",{"path":76,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fdeploy-recipes.md",4844,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fcoolify\u002Freferences\u002Fdeploy-recipes.md",{"path":80,"resourceType":63,"resourceTypeDesc":64,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Finstall-and-proxy.md",4493,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fcoolify\u002Freferences\u002Finstall-and-proxy.md",[84,92,97,104,111,118],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":91},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":93,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":91},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":91},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":91},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":91},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":91},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]