Deliver the app to a Dokploy instance — register the Dokploy environment, then run `spectoflow deliver`, which triggers the application (or compose) deploy through Dokploy's API, follows the new deployment until it is done, and health-checks the result.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Deploy Dokploy?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/georgesmomo-deploy-dokploy)
---
name: deploy-dokploy
description: Deliver the app to a Dokploy instance — register the Dokploy environment, then run `spectoflow deliver`, which triggers the application (or compose) deploy through Dokploy's API, follows the new deployment until it is done, and health-checks the result.
capability: operations
inputs: A project that already builds, and what the USER gives you about their Dokploy — the instance address and the id of the application or compose to deploy. The API key is theirs and stays in their shell.
outputs: A `dokploy` environment in `.spectoflow/config.json` and a delivery result — Dokploy says done and the app is healthy, or the failure code with its cause.
standard: Dokploy API (docs.dokploy.com/docs/api), The Twelve-Factor App
---
# Deploy to Dokploy
Dokploy builds and runs the app itself (from the source it is connected to); spectoflow only asks it to deploy and waits
for its verdict. Never push the user's secrets anywhere, never create Dokploy resources on your own.
## When to use
The Deliver step with a target of `platform` and a Dokploy instance, or the user says "deploy it on my Dokploy". Not for a
plain server over ssh or local Docker (skill `deploy`), not for Coolify or Vercel (their own skills).
## Method
1. **Ask for what only the user knows**: the Dokploy address (`https://dokploy.example.com`) and the **id** of the
application (or of the compose) — shown in the resource's URL in the dashboard. Do not guess either.
2. **Check what Dokploy will deploy.** It deploys what is **pushed** to the connected repository, not this working folder:
the branch must be pushed first. Say so if it is not and stop — pushing is the user's call.
3. **Register it**: `spectoflow env add <name> --type=dokploy --api=https://… --application=<id> --url=https://<public url> --health=/health`
(`--compose=<id>` instead of `--application` for a compose; `--token-env=NAME` if the variable is not `DOKPLOY_API_KEY`).
The command allows it on this machine.
4. **The key is the user's.** Tell them to create an API key in Dokploy (Settings → API/CLI) and
`export DOKPLOY_API_KEY=…` in the shell that runs spectoflow. Never ask them to paste it to you, never write it to a file.
5. **Deliver**: `spectoflow deliver --env=<name>` (a policy gate may ask the user first — wait for it).
6. **On failure, act on the code**: `untrusted-platform` → the user runs `spectoflow env trust <name>`; `platform-auth` → the
key is missing or wrong; `platform-not-found` → wrong id; `platform-unreachable` → address or network;
`deploy-failed` → Dokploy's own error is in the reason (the full log is in its dashboard); `deploy-timeout` → no new
deployment appeared, or it is still running — look at Dokploy before delivering again; `health-failed` → the url or
health path is wrong. At most **three** attempts for the same code, then report it blocked with the last output.
## Output contract
```
::spectoflow role=operations kind=summary msg=<delivered to <name> (Dokploy done, healthy at <url>) — or the code and the cause>
```
A delivery that did not end healthy is never reported as done: end with `REJECTED: <code> — <one-line cause>`.
## Quality bar
- [ ] `spectoflow deliver` exited 0 in this session, not an earlier one.
- [ ] No token, key or password was written to a file or printed.