compose icon indicating copy to clipboard operation
compose copied to clipboard

Ability to watch for dependent service rebuilds

Open mikesir87 opened this issue 3 months ago • 0 comments

Description

I have a Compose file that builds multiple services, one of which ends up being an additional context for the other. Like this:

services:
  service1:
    build: ./components/service1
  service2:
    build: ./components/service2
    additional_contexts:
      service1: service:service1

While I can add Compose Watch config to service1 and have it rebuild, there's no mechanism available to trigger a rebuild of service2.

Therefore, it would be nice to have a mechanism that would allow me to rebuild/restart service2 when a rebuild of service1 has occurred.

mikesir87 avatar Sep 05 '25 16:09 mikesir87