← All notes

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

Sources

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

Permanent ID: iil:note:99g4gsme

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.},
}

Markdown

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.

All artifact files (JSON index)

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.