Docker Compose develop: local watch rules for the inner loop
Answer: The develop key is optional in the Compose Specification and landed in Compose 2.22.0.
What it is for
Compose can focus on a development use-case: running applications on a local machine.
Development hooks can improve the velocity of that local inner loop.
You can add a develop subsection on only the services that need it.
Watch rules
watch lists rules that control automatic service updates when local files change.
A sync action copies matching files into a running container at a target path.
A rebuild action builds a fresh image and recreates the service.
ignore lists paths that should not trigger an update.
See also
Claims
- id: C1 claim: Develop is optional and available from Compose 2.22.0. source: S1 evidence: "optional part of the Compose Specification"
- id: C2 claim: It focuses on running applications on a local machine. source: S1 evidence: "running applications on a local machine"
- id: C3 claim: watch defines rules that control automatic service updates. source: S2 evidence: "rules that control automatic service updates based"
- id: C4 claim: Only some services may need a develop subsection. source: S2 evidence: "services may require a
developsubsection"
Sources
- [S1] Compose file reference: develop. Docker, Inc.. https://docs.docker.com/reference/compose-file/develop/ . License: Apache-2.0. Accessed 2026-11-24.
- [S2] develop.md source. Docker, Inc.. https://raw.githubusercontent.com/docker/docs/main/content/reference/compose-file/develop.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 file reference: develop; Docker, Inc., develop.md 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 file reference: develop; Docker, Inc., develop.md source. Apache-2.0 (https://raw.githubusercontent.com/docker/docs/main/LICENSE). Copyright Docker, Inc.
Cite this
iinventedlight. 2026. "Docker Compose develop: local watch rules for the inner loop." iinventedlight Library, iil:note:99g4gsme, version of 2026-11-24. https://iinventedlight.com/library/notes/docker-compose-develop/. License: CC-BY-4.0.
@misc{iil_note_99g4gsme,
author = {{iinventedlight}},
title = {{Docker Compose develop: local watch rules for the inner loop}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-24},
url = {https://iinventedlight.com/library/notes/docker-compose-develop/},
note = {Permanent ID iil:note:99g4gsme. 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-develop.schema.json (schema; CC-BY-4.0)
- docker-compose-develop.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-develop.md.