Skip to content

Commit d49dcc4

Browse files
committed
fix(showcase): add --project-name to isolated compose commands
The COMPOSE_CMD in apply_isolation was missing --project-name, so Docker Compose would infer the project name from the directory and collide with the base showcase stack (and other isolated runs). Adding --project-name ensures containers, networks, and volumes are fully scoped to the isolation slot.
1 parent 7e4dad0 commit d49dcc4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

showcase/scripts/cli/_common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ with open('$tmp_compose', 'w') as f:
242242
# Override shell variables so all downstream code uses the temp files.
243243
# Originals are NEVER mutated.
244244
COMPOSE_FILE="$tmp_compose"
245-
COMPOSE_CMD="docker compose -f $COMPOSE_FILE"
245+
COMPOSE_CMD="docker compose -f $COMPOSE_FILE --project-name $name"
246246
PORTS_FILE="$tmp_ports"
247247

248248
# Export for the TS harness CLI (config.ts / lifecycle.ts honor this)

0 commit comments

Comments
 (0)