Home Explore Blog Models CI



docker

1st chunk of `content/includes/compose/configure-watch.md`
b501c2e1842c0a34efdbcb4bdf4f3f370187f880fdee764600000001000000ec
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.

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.