Docker Compose deploy: optional deployment specifications
Answer: Deploy is an optional part of the Compose Specification for managing container behavior across environments.
What it covers
It provides a set of deployment specifications for container behavior in different environments.
endpoint mode specifies a service discovery method for external clients connecting to a service.
The specification defines two canonical values, including vip, which assigns the service a virtual IP.
Placement, scale, and updates
replicas sets how many containers should run when the service uses replicated mode.
resources configures physical resource constraints for a container to run on the platform.
placement specifies constraints and preferences for selecting a physical node.
restart policy configures if and how to restart containers when they exit.
update config configures how the service should be updated, which is useful for rolling updates.
See also
Claims
- id: C1 claim: Deploy is an optional part of the Compose Specification. source: S1 evidence: "Deploy is an optional part of the Compose Specification"
- id: C2 claim: endpoint mode specifies a service discovery method for external clients. source: S1 evidence: "specifies a service discovery method for external clients"
- id: C3 claim: resources configures physical resource constraints for a container. source: S2 evidence: "configures physical resource constraints for container"
- id: C4 claim: update config is useful for configuring rolling updates. source: S2 evidence: "Useful for configuring rolling updates"
Sources
- [S1] Compose Deploy Specification. Docker, Inc.. https://docs.docker.com/reference/compose-file/deploy/ . License: Apache-2.0. Accessed 2026-11-24.
- [S2] Compose Deploy Specification (source). Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/reference/compose-file/deploy.md . License: Apache-2.0. Accessed 2026-11-24.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Compose Deploy Specification; Docker, Inc., Compose Deploy Specification (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Docker, Inc., Compose Deploy Specification; Docker, Inc., Compose Deploy Specification (source). Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker Compose deploy: optional deployment specifications." iinventedlight Library, iil:note:tcc7wn1t, version of 2026-11-24. https://iinventedlight.com/library/notes/docker-compose-deploy/. License: CC-BY-4.0.
@misc{iil_note_tcc7wn1t,
author = {{iinventedlight}},
title = {{Docker Compose deploy: optional deployment specifications}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/docker-compose-deploy/},
note = {Permanent ID iil:note:tcc7wn1t. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- docker-compose-deploy.schema.json (schema; CC-BY-4.0)
- docker-compose-deploy.table.json (table; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/docker-compose-deploy.md.