diff --git a/pkg/compose/watch.go b/pkg/compose/watch.go index 37ac3457e3f..0a6590605d1 100644 --- a/pkg/compose/watch.go +++ b/pkg/compose/watch.go @@ -155,7 +155,7 @@ func (s *composeService) watch(ctx context.Context, syncChannel chan bool, proje var paths, pathLogs []string for _, trigger := range config.Watch { - if checkIfPathAlreadyBindMounted(trigger.Path, service.Volumes) { + if trigger.Action != types.WatchActionRebuild && checkIfPathAlreadyBindMounted(trigger.Path, service.Volumes) { logrus.Warnf("path '%s' also declared by a bind mount volume, this path won't be monitored!\n", trigger.Path) continue } else {