Home Explore Blog CI



docker

content/includes/compose/configure-watch.md
cfc657270237d1f9c27e9a170413349cad5797428d2f675a00000003000000ec
1. Add `watch` sections to one or more services in `compose.yaml`.
2. Run `docker compose up --watch` to build and launch a Compose project and start the file watch mode.
3. Edit service source files using your preferred IDE or editor.

Chunks
b501c2e1 (1st chunk of `content/includes/compose/configure-watch.md`)
Title: Using Docker Compose Watch Mode
Summary
This section describes how to use Docker Compose's watch mode. It involves adding `watch` sections to services in the `compose.yaml` file, running `docker compose up --watch`, and then editing service source files. This allows for automatic rebuilding and redeployment of services upon file changes.