fix(edge/docker): add bind mount volume label for restarting the specific service [BE-12575] (#1821)

This commit is contained in:
Oscar Zhou
2026-03-18 08:44:50 +13:00
committed by GitHub
parent 364027054c
commit 13fb3118ee
5 changed files with 290 additions and 0 deletions
+9
View File
@@ -408,5 +408,14 @@ func createProject(ctx context.Context, configFilepaths []string, options libsta
return nil, fmt.Errorf("failed to resolve services environment: %w", err)
}
if options.BindMountHashEnabled {
// Set per-service label for bind mount hashes under each service
if project, err = project.WithServicesTransform(addBindMountHashLabel); err != nil {
log.Warn().
Err(err).
Msg("Failed to set bind mount hash labels, proceeding without them. Stack updates may not be detected when bind-mounted files change")
}
}
return project, nil
}