force-recreate the stack after an in-place restore so it comes up on the restored data

This commit is contained in:
Jarek Krochmalski committed 2026-09-12 16:24:13 +02:00
1 parent 61cd945705
commit 56c132a7a1
2 files changed
+56 -1

No files matched your search

+6 -1
View File
@@ -2430,7 +2430,12 @@ export async function redeployStackFromDir(
composePath,
envPath: hasEnv ? envPath : undefined,
composeFileName,
stackFiles
stackFiles,
// A restore rewrote the stack dir and swapped the volume data underneath the
// stack. Force-recreate so the container is rebuilt fresh against the restored
// state; a plain `up` sees the unchanged compose and only restarts the stopped
// container, which can leave it not-yet-running after an in-place swap.
forceRecreate: true
},
composeContent,
envVars,