Skip to content

Docker Compose Watch: live updates while you code

Select an icon to see what it is.

Step 2 of 6

Start with --watch

docker compose up --watch builds the image, starts the containers with the usual API calls, and then keeps running. The Compose CLI itself watches the host paths for changes. If you started with docker compose up -d, docker compose watch starts only the watching.

$ docker compose up --watch

POST /v1.45/containers/<id>/start

shop-web-1 172.18.0.2:80, published on host port 8080
then the CLI watches ./html, ./nginx.conf and ./Dockerfile on the host