{
  "id": "docker-compose-watch-table",
  "kind": "table",
  "slug": "docker-compose-watch",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/docker-compose-watch/",
  "title": "docker compose watch syncs, rebuilds or restarts services when source files change",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "sync",
      "source": "Docker docs (Compose how-tos)",
      "detail": "Compose makes sure changes to files on your host automatically match the corresponding files within the service container. It suits frameworks with \"Hot Reload\". For many development use cases, sync rules can replace bind mounts."
    },
    {
      "name": "rebuild",
      "source": "Docker docs (Compose how-tos)",
      "detail": "Compose automatically builds a new image with BuildKit and replaces the running service container. Rebuild is ideal for compiled languages."
    },
    {
      "name": "sync+restart",
      "source": "Docker docs (Compose how-tos)",
      "detail": "Compose synchronizes your changes with the service containers and restarts them. Use it when a config file changes: the image need not be rebuilt, only the main process restarted."
    },
    {
      "name": ".dockerignore",
      "source": "Docker docs (Compose how-tos)",
      "detail": "rules apply; use the ignore option to define additional paths to be ignored."
    },
    {
      "name": ".git",
      "source": "Docker docs (Compose how-tos)",
      "detail": "directories and temporary/backup files for common IDEs are ignored automatically."
    }
  ],
  "related_slugs": [
    "docker-compose-basics",
    "docker-bind-mounts-tmpfs"
  ],
  "license": "CC-BY-4.0",
  "source_license": "Apache-2.0 (Docker docs (Compose how-tos)); Apache-2.0 (Docker docs (reference)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}