dokploy
Dokploy上でアプリケーション構築、デプロイ、トラブルシューティングを行う際に、最適なデプロイモデルやワークフローを選び、ドメイン設定、HTTPS化、CI/CD戦略などを提案し、Dokploy利用者の意思決定を支援するSkill。
📜 元の英語説明(参考)
Use when planning, deploying, or troubleshooting workloads on Dokploy. This includes choosing between Application, Docker Compose, or Swarm-style deployment models; selecting Nixpacks, Dockerfile, Static, or prebuilt-image workflows; configuring domains, HTTPS, environment variables, and persistence; and recommending CI/CD, remote-server, or zero-downtime rollout strategies. Use this whenever the user mentions Dokploy directly or describes a Dokploy-hosted app and needs platform decisions rather than generic Docker advice.
🇯🇵 日本人クリエイター向け解説
Dokploy上でアプリケーション構築、デプロイ、トラブルシューティングを行う際に、最適なデプロイモデルやワークフローを選び、ドメイン設定、HTTPS化、CI/CD戦略などを提案し、Dokploy利用者の意思決定を支援するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o dokploy.zip https://jpskill.com/download/8819.zip && unzip -o dokploy.zip && rm dokploy.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/8819.zip -OutFile "$d\dokploy.zip"; Expand-Archive "$d\dokploy.zip" -DestinationPath $d -Force; ri "$d\dokploy.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
dokploy.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
dokployフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Dokploy
Dokploy は、Docker、Traefik、およびウェブコントロールプレーンを中心に構築されたセルフホスト型の PaaS です。これを使用すると、完全なプラットフォームレイヤーをゼロから構築することなく、単一のアプリケーション、Docker Compose スタック、ドメイン、SSL、および運用ワークフローをデプロイできます。
ドキュメント: https://docs.dokploy.com/docs/core
ユーザーの問題に基づいて、以下の参考資料をお読みください。
- Application、Docker Compose、Stack の選択、およびビルドタイプの選択については、rules/build-types.md をお読みください。
- インストール、ドメイン、環境変数、ボリューム、CI/CD、ゼロダウンタイム、リモートサーバー、およびセキュリティについては、rules/operations.md をお読みください。
- 正確な運用コマンドとより詳細なプラットフォームの詳細については、deployment-reference.md をお読みください。
- ビルドタイプの詳細については、dockerfile-reference.md、nixpacks-reference.md、または static-reference.md をお読みください。
この Skill を使用するタイミング
この Skill は、ユーザーが一般的なコンテナに関するアドバイスではなく、Dokploy 固有の判断を必要とする場合に使用します。典型的なケース:
- リポジトリを Dokploy にどのようにデプロイするかを決定する際に支援が必要な場合。
- Application、Docker Compose、または Swarm のどれを使用すべきか不明な場合。
- Nixpacks、Dockerfile、Static、またはイメージベースの配信の中から選択する必要がある場合。
- Dokploy でドメイン、HTTPS、ポート、環境変数、またはボリュームを構成している場合。
- CI/CD、ウェブフック、リモートサーバー、またはゼロダウンタイムのデプロイ動作を計画している場合。
- 502 エラー、ドメインの破損、環境変数の欠落、再デプロイ後のファイルの消失など、Dokploy の症状をデバッグしている場合。
作業スタイル
推奨事項を監査しやすいように、固定された決定順序で回答を導き出します。
- デプロイモードの選択: まず Application、サービスグラフが重要な場合にのみ Docker Compose を使用します。
- ビルドタイプの選択: 利便性のために Nixpacks、制御のために Dockerfile、生成されたアセットのために Static を使用します。
- ランタイムコントラクトの設定: コンテナポート、環境変数、ボリューム、ヘルスチェック。
- イングレスのアタッチ: ドメイン、HTTPS 証明書、パスの動作。
- ロールアウトパスの選択: 小規模/単純な作業の場合はサーバー上でのビルド、本番環境の場合は CI/CD + レジストリ。
- 必要な場合にのみ強化: リモートサーバー、クラスター/Swarm、直接 UI 公開ルール。
ユーザーが十分な詳細を提供していない場合は、推奨事項を変更する可能性のある不足している入力のみを尋ねます。
- ワークロードは、デプロイ可能な単一のアプリですか、それともマルチサービスのトポロジですか?
- 出力は、静的ファイル、長時間実行サーバー、または複数の長時間実行プロセスですか?
- これは迅速な内部デプロイですか、それとも再現性とより安全なアップグレードが必要な本番環境へのロールアウトですか?
- アプリケーションには、永続性、カスタムネットワーク、またはコンパニオンサービスが必要ですか?
レスポンスコントラクト
Dokploy の推奨事項を示す場合は、次の順序で回答を構成します。
- 推奨される Dokploy モード: Application、Docker Compose、または Stack。
- 推奨されるビルドパス: Nixpacks、Dockerfile、Static、または事前構築済みの Docker イメージ。
- これが適合する理由: アプリの形状と運用上の制約に選択を結び付けます。
- 必要な Dokploy 設定: コンテナポート、公開ディレクトリ、環境変数の配線、ボリューム戦略、ヘルスチェック、ドメインルール。
- 本番環境の注意点: CI/CD、ロールアウトの安全性、リモートサーバーまたは Swarm に関する懸念 (該当する場合)。
- 次のステップ: 簡潔で実行可能なアクション。
ビルドタイプを名前を挙げるだけで終わらせないでください。選択を機能させるために Dokploy で何を構成する必要があるかをユーザーに伝えます。
| 必要 | 選択 | いつ |
|---|---|---|
| 高速な単一アプリのデプロイ | Application + Nixpacks |
従来のアプリ、セットアップが簡単、迅速なイテレーション |
| 本番環境アプリのデプロイ | Application + Dockerfile |
正確なイメージ、再現可能なランタイム、マルチステージビルドが必要 |
| 静的フロントエンド | Application + Static |
ビルド出力は NGINX から提供される静的ファイル |
| 既存のマルチサービストポロジ | Docker Compose |
リポジトリはすでに複数のサービスとネットワークを定義している |
| 安全な本番環境へのロールアウト | CI/CD + イメージデプロイ | ビルド負荷は Dokploy ホストで実行しないでください |
| 水平スケーリング | クラスター / Swarm | スケーリング要件は明示的であり、想定されていません |
コアルール
- ユーザーが本当に Compose を必要としない限り、Application をデフォルトにします。
- 本番環境の推奨事項については、Dockerfile をデフォルトにします。
- アプリが静的出力を生成する場合にのみ Static を使用します。静的ドメインは ポート 80 をターゲットにする必要があります。
- Nixpacks は、最も制御された本番環境パスではなく、便利なパスとして扱います。
- ユーザーがすでに信頼性の高い CI パイプラインとレジストリを持っている場合は、Dokploy ホストでの再構築よりもイメージデプロイを優先します。
- Docker Compose の場合、Dokploy で管理される
.env値は、依然としてenv_fileまたは明示的な${VAR}配線が必要になる場合があることに注意してください。 - 永続的なファイルの場合は、
../files/...バインドマウントまたは名前付きボリュームを優先します。 - 実際のヘルスチェックとロールバック可能な更新戦略が存在する場合にのみ、ゼロダウンタイムの動作を推奨します。
推奨パターン
ユーザーの制約が明らかに他の場所を指していない限り、これらのデフォルトを使用します。
- Laravel または本番環境に向かうその他のサーバーランタイム:
Application+Dockerfile、次にヘルスチェックと CI で構築されたイメージを追加します。 - 高速セットアップのためのシンプルな Node または PHP アプリ:
Application+Nixpacks。 - Vite またはその他の生成されたフロントエンドアーティファクト: 出力がビルドされたファイルのみの場合は
Application+Static。 - 値が Compose トポロジである既存のリポジトリ:
Docker Compose。 - ユーザーが水平スケーリングまたは Swarm について明示的に質問する場合:
Stackを検討しますが、デフォルトではなく明示的なエスカレーションとして扱います。
トラブルシューティングの順序
既存のデプロイをデバッグする場合は、次の順序で障害を絞り込みます。
- デプロイモードがワークロードの形状と一致することを確認します。
- ランタイムコントラクトが正しいことを確認します: リスナーポート、公開ディレクトリ、環境変数の配線、および永続性。
- イングレスが正しいことを確認します: DNS、ドメインホスト/パス、HTTPS、Traefik ルーティング。
- ロールアウト動作を確認します: ヘルスチェック、ホストへのビルド負荷、Compose ラベルの再デプロイ要件。
- その後でのみ、リモートサーバー、クラスター、またはセキュリティにエスカレートします。
(原文がここで切り詰められています)
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
Dokploy
Dokploy is a self-hosted PaaS built around Docker, Traefik, and a web control plane. Use it to deploy single applications, Docker Compose stacks, domains, SSL, and operational workflows without building a full platform layer from scratch.
Docs: https://docs.dokploy.com/docs/core
Read the supporting references based on the user's problem:
- For Application vs Docker Compose vs Stack and build-type choices, read rules/build-types.md.
- For installation, domains, environment variables, volumes, CI/CD, zero-downtime, remote servers, and security, read rules/operations.md.
- For exact operational commands and deeper platform details, read deployment-reference.md.
- For build-type specifics, read dockerfile-reference.md, nixpacks-reference.md, or static-reference.md.
When To Use This Skill
Use this skill when the user needs Dokploy-specific judgment, not generic container advice. Typical cases:
- They need help deciding how a repo should be deployed on Dokploy.
- They are unsure whether to use Application, Docker Compose, or Swarm.
- They need to choose between Nixpacks, Dockerfile, Static, or image-based delivery.
- They are configuring domains, HTTPS, ports, environment variables, or volumes in Dokploy.
- They are planning CI/CD, webhooks, remote servers, or zero-downtime deployment behavior.
- They are debugging a Dokploy symptom such as 502s, broken domains, missing env vars, or lost files after redeploy.
Working Style
Drive the answer through a fixed decision order so the recommendation is easy to audit:
- Choose deployment mode: Application first, Docker Compose only when the service graph matters.
- Choose build type: Nixpacks for convenience, Dockerfile for control, Static for generated assets.
- Set runtime contract: container port, environment variables, volumes, health check.
- Attach ingress: domain, HTTPS certificate, path behavior.
- Choose rollout path: on-server build for small/simple work, CI/CD + registry for production.
- Harden only if needed: remote servers, cluster/Swarm, direct UI exposure rules.
If the user did not provide enough detail, ask only for the missing inputs that would change the recommendation:
- Is the workload one deployable app or a multi-service topology?
- Is the output static files, a long-running server, or multiple long-running processes?
- Is this a quick internal deploy or a production rollout that needs reproducibility and safer upgrades?
- Does the app need persistence, custom networking, or companion services?
Response Contract
When giving a Dokploy recommendation, structure the answer in this order:
- Recommended Dokploy mode: Application, Docker Compose, or Stack.
- Recommended build path: Nixpacks, Dockerfile, Static, or prebuilt Docker image.
- Why this fits: tie the choice back to the app shape and operational constraints.
- Required Dokploy settings: container port, publish directory, env wiring, volume strategy, health check, domain rules.
- Production caveats: CI/CD, rollout safety, remote server or Swarm concerns if relevant.
- Next steps: concise, executable actions.
Do not stop at naming a build type. Tell the user what they need to configure in Dokploy for the choice to work.
| Need | Choose | When |
|---|---|---|
| Fast single-app deploy | Application + Nixpacks |
Conventional app, low setup, quick iteration |
| Production app deploy | Application + Dockerfile |
Need exact image, reproducible runtime, multi-stage build |
| Static frontend | Application + Static |
Build output is static files served from NGINX |
| Existing multi-service topology | Docker Compose |
Repo already defines multiple services and networking |
| Safe production rollout | CI/CD + image deploy | Build load should not run on the Dokploy host |
| Horizontal scaling | Cluster / Swarm | Scaling requirement is explicit, not assumed |
Core Rules
- Default to Application unless the user truly needs Compose.
- Default to Dockerfile for production recommendations.
- Use Static only when the app produces static output; static domains must target port 80.
- Treat Nixpacks as the convenience path, not the most controlled production path.
- If the user already has a reliable CI pipeline and registry, prefer image deployment over rebuilding on the Dokploy host.
- For Docker Compose, remember Dokploy-managed
.envvalues may still needenv_fileor explicit${VAR}wiring. - For persistent files, prefer
../files/...bind mounts or named volumes. - Only recommend zero-downtime behavior when a real health check and rollback-capable update strategy are present.
Recommendation Patterns
Use these defaults unless the user's constraints clearly point elsewhere:
- Laravel or other server runtime headed for production:
Application+Dockerfile, then add health checks and CI-built images. - Simple Node or PHP app for fast setup:
Application+Nixpacks. - Vite or other generated frontend artifact:
Application+Staticwhen the output is only built files. - Existing repo whose value is its compose topology:
Docker Compose. - User asks about horizontal scaling or Swarm explicitly: consider
Stack, but treat it as an explicit escalation rather than the default.
Troubleshooting Order
When debugging an existing deployment, narrow the failure in this order:
- Confirm the deploy mode matches the workload shape.
- Confirm the runtime contract is correct: listener port, publish directory, env wiring, and persistence.
- Confirm ingress is correct: DNS, domain host/path, HTTPS, Traefik routing.
- Confirm rollout behavior: health checks, build pressure on host, redeploy requirements for Compose labels.
- Only then escalate to remote-server, cluster, or security-hardening concerns.
Quick Checks
- Domain broken: verify DNS, Traefik routing, and correct container port.
- 502 during deploy: check app listener, health endpoint, and rollout strategy.
- Build stalls server: move builds to CI/CD.
- Files disappear after deploy: fix the volume strategy.
- Static app fails behind domain: confirm publish directory and port 80.
Common Mistakes
- Recommending Docker Compose for a simple single-service app.
- Using Static for SSR or a server runtime.
- Treating on-host builds as the production default.
- Forgetting that Compose domain changes usually require redeploy.
- Claiming zero-downtime without requiring a real health check.