`docker compose watch` doesn't reflect changes as per tutorial

Open
#41 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
docker, docker-compose

Research direction

Start with the Docker Desktop Learning Center tutorial's step 7 and the develop.watch section in compose.yaml. Run docker compose watch, then change line 18 of app/views/todos.ejs to reproduce the missing live update. Done means the tutorial change is reflected in the running application, with the watch configuration and tutorial behavior consistent.

Written by the indexing model from the issue text.

Description

In the Docker Desktop Learning Center tutorials, it says (as step 7) to run docker compose watch and then alter line 18 of app/views/todos.ejs to see a live change. However, that doesn't work.

After a quick look at docs, I found that adding this to the develop: watch: section of compose.yaml seems to fix this:

        - path: ./app/views
          target: /usr/src/app/views
          action: rebuild
Dominant language
EJS
Stars
234
Forks
658
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from docker/multi-container-app

All issues in docker/multi-container-app

Similar issues

More DevOps issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.