Docker compose watch a specific service

Hi all. I have compose.yml file which consists of several services which has “watch” option. at some point i want to “watch” only one service and i use a command docker compose watch service2 --no-up but it watches all services. are there any way to start watching only one service?

1 Like

Hi,
I’ve been looking for an answer to this for many days now. Unfortunately it seems that service specified in the watch command does not work that way as I also would expect.
In order to watch only one service, you should run docker compose up service2 chained with docker compose watch --no-up as per reply in this thread: [BUG] The `docker compose watch my-service` command always launches all services defined with the compose file · Issue #11438 · docker/compose · GitHub
:confused: