Overview
Use Dokploy as the default deployment control plane for local projects. Prefer the CLI for repeatable work, use JSON output for parsing, and open the Dokploy console only when the CLI cannot complete a step or an API key must be created manually.
Default console URL:
http://211.47.74.86:3000
Core Rules
- Run commands from the project root unless a different path is explicit.
- Prefer
dokploy ... --jsonand parse the result instead of relying on formatted text. - Never print API tokens, database passwords,
.envvalues, or full secret-bearing command lines in the final response. - Do not delete applications, databases, domains, volumes, or deployments without explicit user approval.
- Before deploying, inspect git status. Dokploy deploys from remote sources; uncommitted or unpushed local changes usually are not deployed.
- If authentication is missing, ask for a Dokploy API key or tell the user how to create one in the console. Do not invent credentials.
Fast Start
- Inspect the project:
node .agents/skills/onestack/scripts/inspect_project.mjs .
- Install or verify the CLI, then authenticate:
DOKPLOY_URL=http://211.47.74.86:3000 DOKPLOY_API_KEY="$DOKPLOY_API_KEY" \
bash .agents/skills/onestack/scripts/bootstrap_dokploy.sh
- Read the command guide when creating or updating Dokploy resources:
sed -n '1,220p' .agents/skills/onestack/references/dokploy-cli.md
Deployment Workflow
- Analyze the local project with
inspect_project.mjs. - Confirm the remote source:
- Require a usable git remote and branch for application or compose deployments.
- If there are uncommitted changes, ask whether to commit/push before deploying.
- If there are unpushed commits, push them or confirm they are intentionally excluded.
- Authenticate with
bootstrap_dokploy.sh. - Discover or create the Dokploy project and environment:
- Use
dokploy project search --name <name> --json. - Use
dokploy project create --name <name> --jsononly when no suitable project exists. - Use
dokploy environment search --projectId <id> --name production --json, then create it if needed.
- Use
- Choose the Dokploy resource type:
- Use
composewhen a rootdocker-compose.yml,docker-compose.yaml,compose.yml, orcompose.yamlexists. - Use
applicationwithbuildType=dockerfilewhen aDockerfileexists. - Use
applicationwithbuildType=staticfor Vite/SPA builds with a publish directory such asdist. - Use
applicationwithbuildType=nixpacksorrailpackfor common Node/Python apps without a Dockerfile.
- Use
- Configure source, build type, environment variables, ports, and domains.
- Deploy with
dokploy application deploy --applicationId <id> --jsonordokploy compose deploy --composeId <id> --json. - Verify with
dokploy application one,dokploy compose one, anddokploy deployment all-by-type.
Authentication
Use the default URL unless the user names another server:
export DOKPLOY_URL="http://211.47.74.86:3000"
export DOKPLOY_API_KEY="<token from Dokploy dashboard>"
bash .agents/skills/onestack/scripts/bootstrap_dokploy.sh
The CLI also accepts DOKPLOY_AUTH_TOKEN. dokploy auth -u <url> -t <token> persists credentials for later CLI calls, but environment variables are preferable in automation because they make the target server explicit.
References
Load these only when needed:
references/dokploy-cli.md: practical Dokploy CLI commands, deployment recipes, and status checks.scripts/inspect_project.mjs: local project detector that outputs JSON for deployment planning.scripts/bootstrap_dokploy.sh: CLI installer/authenticator/verifier.