Setting for how many images one Compose deployment builds at once
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 57/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- docker-compose, typescript
- 領域
- devops
調査の方向性
Start with packages/server/src/utils/builders/compose.ts and trace where Deployment Settings stores and reads buildsConcurrency; the issue does not name the settings UI or persistence files. Check how the compose command is assembled and how the settings page exposes the existing value. Done means a per server image concurrency setting defaults to unlimited and passes COMPOSE_PARALLEL_LIMIT to Compose when configured.
索引モデルが issue の本文から書いたものです。
説明
What problem will this feature address?
Deployment Settings → Concurrent Builds (buildsConcurrency) only decides how many deployments may run at the same time. Builds of the same service stay serialized. That control is right, and on a small host it should stay at 1.
It does not decide how many images one docker compose up -d --build builds at the same time.
Dokploy v0.31.0 ships Docker Compose v5.7.0. That release forwards COMPOSE_PARALLEL_LIMIT to Bake as --jobs (docker/compose#14352). Dokploy v0.30.10 shipped Compose v5.6.1, whose plugin contains the variable name but not --jobs, so Bake ignored the limit.
The deploy script wraps the command in env -i (packages/server/src/utils/builders/compose.ts) and keeps only PATH and HOME. An operator therefore cannot export COMPOSE_PARALLEL_LIMIT into that process, and the Deployment Settings page has no field for it. Putting the variable in the Compose env file does not help: --env-file interpolates the project, it does not configure the Compose CLI.
We had set COMPOSE_PARALLEL_LIMIT=1 in a docker shim that sits first on the service PATH, as a memory guard. Under v0.30.10 that value did nothing to Bake. After the container moved to v0.31.0 (Compose v5.7.0) the same value serializes every image inside one Compose deployment. The command string Dokploy prints is unchanged.
Measured on one Compose project with two Dockerfiles (web and cms), Docker Engine 29.9.3 already running:
- 4 Nov, still Dokploy v0.30.10 / Compose v5.6.1: the web
chownand the cmsnext buildran at the same time. That deploy took 6m 44s. - 6 Nov, after v0.31.0 was up (15:55 UTC): BuildKit history shows the cms image starting in the second the web image finishes. Web build 4m 21s, then cms build 3m 49s. Deploys of the same project settled at about 8–9 minutes.
Host Docker 29.9.3 is not what changed the schedule. A deploy on that engine the evening before, still on Dokploy v0.30.10, still overlapped the two images.
Without a preset, Compose's own default stays unlimited, so this does not make every install slower. It makes a limit that used to be ignored suddenly real, and leaves no supported way to set or raise it. #4461 already asked for a concurrency guard inside one Compose project (parallel service builds can exhaust a small host) and was closed without that control.
Describe the solution you'd like
On Deployment Settings, next to Concurrent Builds, a second per-server value: how many images one deployment may build at the same time.
- Store it the same way as
buildsConcurrency. - When the compose command runs, export
COMPOSE_PARALLEL_LIMITon theenv -iline, next toPATHandHOME, so Bake receives--jobs. - Default: unlimited (omit the variable, or pass
0). Installs that never set it keep Bake's current behavior. 1builds the images of that one deployment one after another. The deployment queue is unchanged and can stay at 1.- A value such as
2overlaps two images inside that deployment (for us, the web image and the cms image) without starting a second deployment.
Happy to open a PR for this.
Describe alternatives you've considered
A docker shim earlier on PATH that exports COMPOSE_PARALLEL_LIMIT. It works only while the Dokploy service PATH points at that shim. install.sh update does not delete the file, but recreating the service from the upstream script drops the custom PATH and the shim is never called. The next Compose release can also change what the number means. The shim is how we noticed the regression; it should not be the configuration surface.
Additional context
Concurrent Builds must stay the deployment-queue control. This request is the other number: images inside a single docker compose up --build.
The two are easy to confuse, and the warning already on that page (CPU, memory, disk) applies to both. A host with 8 GB of RAM can want the queue at 1 and the image parallelism at 2, or the reverse.
Will you send a PR to implement it?
Yes
- 主要言語
- TypeScript
- スター
- 38.8k
- フォーク
- 3.2k
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 110
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Dokploy/dokploy のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Dokploy/dokploy#6151 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Healthy Swarm task shows an empty `(Error:)` suffix on the last row of the Containers tab対応中かも @AyhamJo7 が 4 日前に担当しました。 オープンneeds-triage🔍
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
Dokploy/dokploy#6115 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Global search (Cmd/Ctrl+J) never sorts results by relevance対応中かも @hamidzr が 6 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Dokploy/dokploy#6107 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`utils/dns/ovh.ts`: the zone-listing 403 handler replaces the provider's error instead of chaining it対応中かも @SyncWithRaj が 8 日前に担当しました。 オープンbug
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
Dokploy/dokploy#6075 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
MongoDB with Replica Sets enabled: container exits with code 0 and restarts in a loop (generated startup script never waits on mongod)対応中かも @ghazy2001 が 10 日前に担当しました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Dokploy/dokploy#6051 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
Dokploy/dokploy の issue をすべて見る
似ている issue
-
[Bug]: RUN_STARTED resets the run's tool-call tally even when a subscriber suppresses the eventオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
ag-ui-protocol/ag-ui#3504 ·
メンテナーはふだん 1 日以内に返信
-
area/profiles area/sessions comp/desktop desktop/chat desktop/sessions P2 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
NousResearch/hermes-agent#161712 ·
メンテナーはふだん 1 日以内に返信
-
bug p3
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rothgar/rabble.radio#283 ·
メンテナーはふだん 1 日以内に返信
-
bug from-app needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
nightly-labs/openbot#19805 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
OHDSI/Data2Evidence#3760 ·
メンテナーはふだん 3 日以内に返信