Interview Prep/Docker/Volumes & Bind Mounts

What is Compose `develop.watch`?

IntermediateConceptVolumes & Bind Mounts
Answer

A dev feature (docker compose watch) with actions sync, rebuild and sync+restart that reacts to file changes without bind mounting the whole tree.

services:
  web:
    build: .
    develop:
      watch:
        - action: sync
          path: ./src
          target: /app/src
        - action: rebuild
          path: package.json
All Docker questions Roadmap: Docker & containers

More on Volumes & Bind Mounts