Skip to content

Docker Compose Watch: live updates while you code

Select an icon to see what it is.

Step 3 of 6

sync: the changed file is copied in

You save ./html/index.html. The Compose CLI copies the changed file into the container and does not restart it. The image needs stat, mkdir and rmdir, and the container's user must be able to write the target path.

Event on the host

./html/index.html changed
matches the rule: action sync, target /usr/share/nginx/html