What's Changed
Ordered deployment dependencies
Deployments in .doco-cd.yml can now depend on other deployments with depends_on. Related stacks deploy in order. Independent stacks still deploy in parallel.
name: database
---
name: backend
depends_on: [database]
---
name: frontend
depends_on: [backend]- Names resolve within the same Docker
context. - A waiting deployment does not hold the stack lock and does not use a deployment slot (
MAX_CONCURRENT_DEPLOYMENTS). Event-driven reconciliation can still repair the stack while it waits. - A failed dependency blocks its dependents, also transitively. Reconciliation keeps a blocked stack on its last deployed commit or OCI digest, even if the branch has moved. A blocked stack without a known deployed revision is not created.
- Skipped, paused, unchanged, or sync-window-deferred dependencies do not block their dependents.
- When both stacks have
destroyenabled, doco-cd destroys them in reverse order. - doco-cd rejects unknown names, self references, duplicates, and cycles.
depends_onalso works with auto-discovery and nested config overrides.
Note
depends_on in .doco-cd.yml only orders doco-cd deployments. It does not wait for services to become healthy. Use the Compose depends_on service attribute for the container startup order.
See Deploy Settings -> Dependency Settings in the wiki.
Swarm: share secrets and configs across stacks
Swarm secrets and configs with an environment: or content: source (added in v0.139.0) can now be shared by several stacks. Add the opt-in label cd.doco.swarm.shared: "true" and an explicit name.
secrets:
db_password:
name: db_password
environment: DB_PASSWORD
labels:
cd.doco.swarm.shared: "true"- The object name is
<name>_<hash>. Stacks with the same value use the same object. - Each stack adds its own owner label. A value change in one stack creates a new object, and the other stacks keep the old revision.
- Prune and destroy only release the owner label of the stack. The last owner removes the object.
- A stack can convert its own single-owner object to a shared object and back.
Warning
docker stack rm does not remove shared objects, because they have no stack namespace label.
See Swarm Mode -> Shared secrets and configs in the wiki.
Swarm: security_opt support
docker stack deploy ignores security_opt. doco-cd now converts the supported entries to Swarm service privileges, so Swarm tasks get the same isolation as in a Compose deployment.
services:
app:
image: nginx:latest
security_opt:
- seccomp=./seccomp/app.json
- no-new-privileges- Supported entries:
seccomp=<path|builtin|unconfined>,no-new-privileges[=true|false],apparmor=unconfined,label=disable, andlabel=<user|role|type|level>:<value>. - doco-cd reads seccomp profile files from the repository and sends them in the service spec. The file does not have to exist on the Swarm nodes. SOPS-encrypted profiles are decrypted.
- A changed seccomp profile redeploys the services that use it (Swarm and Compose mode).
- Unsupported entries fail the deployment, so a service never runs with weaker isolation than requested.
- Requires Docker Engine 25.0 (API 1.44) or later. On older engines, a service with
security_optfails the deployment.
See Swarm Mode -> Security options in the wiki.
Post-quantum age keys
doco-cd now uses filippo.io/age v1.4.0. The docs now recommend post-quantum (ML-KEM-768 + X25519) age keys (age-keygen -pq) and include a migration guide without downtime. Classic X25519 keys continue to work.
See Encryption -> Migrate to post-quantum age keys in the wiki.
Fixes
- Submodule changes: Stacks now redeploy when only a submodule pointer changes (with
GIT_CLONE_SUBMODULESenabled). Unrelated submodules do not trigger a redeploy. Relative Dockerfile paths in neighboring submodules are now tracked. (#2265) - Swarm self-update: A successful Swarm self-update was reported as failed with
Swarm task specification was superseded before confirmation. doco-cd now ignores the fields that Docker changes when it stores the service. A rollback to an older release can still show the false failure. (#2282) - Swarm self-update: A failed self-update is no longer reported as a pending handover when the handover config cannot be removed. (#2266)
- Encrypted
extendsfiles: A Compose file that is reached throughextends: file:and is still SOPS-encrypted now fails with a clear error. Before, the service silently got the encrypted values. Thanks @Reintjuu! (#2234) - MCP: Structured error output is now opt-in per tool. Scheduled jobs, polls, mirror compaction, and
control_stackkeep their run IDs, statuses, and per-service results on error. (#2273)
All changes
✨ Features
- feat(swarm): share memory secrets and configs across stacks by @kimdre in #2261
- feat(deploy): support ordered deployment dependencies by @kimdre in #2266
- feat(swarm): apply security_opt to Swarm services by @kimdre in #2279
🌟 Improvements
🐛 Bug Fixes
- fix(deploy): redeploy stacks when submodule pointers change by @kimdre in #2265
- fix(selfupdate): match Swarm task specs after Docker round trip by @kimdre in #2282
📦 Dependencies
- chore(deps): update golang:1.27.4 docker digest to 6c84d96 by @renovate[bot] in #2263
- chore(deps): update docker/github-builder digest to 484676b by @renovate[bot] in #2267
- fix(deps): update aws-sdk-go-v2 monorepo by @renovate[bot] in #2268
- fix(deps): update module github.com/go-git/go-git/v5 to v5.19.4 by @renovate[bot] in #2269
- fix(deps): update module github.com/infisical/go-sdk to v0.9.2 by @renovate[bot] in #2270
- fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.4.0 by @renovate[bot] in #2271
- fix(deps): update module github.com/modelcontextprotocol/go-sdk to v1.9.0 by @renovate[bot] in #2272
- chore(deps): update dependency zensical to v0.1.5 by @renovate[bot] in #2275
- chore(deps): update awalsh128/cache-apt-pkgs-action action to v2.0.1 by @renovate[bot] in #2274
- fix(deps): update module github.com/aws/aws-sdk-go-v2/config to v1.33.26 by @renovate[bot] in #2276
- fix(deps): update module github.com/1password/onepassword-sdk-go to v0.5.0 by @renovate[bot] in #2278
- chore(deps): update awalsh128/cache-apt-pkgs-action action to v2.0.3 by @renovate[bot] in #2280
- fix(deps): update module filippo.io/age to v1.4.0 by @kimdre in #2283
📚 Miscellaneous
New Contributors
Full Changelog: v0.139.0...v0.140.0