fix: preserve clean-clone endpoint across container restarts

This commit is contained in:
2026-11-07 08:26:05 +03:00
parent 7466a09178
commit 8e3e16a8a6
6 changed files with 302 additions and 28 deletions
+12
View File
@@ -0,0 +1,12 @@
Source commit: 7466a09
Status: INCOMPLETE, not a successful final clean-clone verification.
The first isolated clone used PUBLIC_PORT=0 (automatic host port).
Bootstrap/build/static checks, smoke and HTTP tests completed before the
public persistence stage. After restart the public client kept its original
BASE_URL and could not recover within 90 seconds. Temporary project and
its volumes were removed by the cleanup handler.
Diagnostic reproduction checks whether Docker reassigns an automatic host
port on restart. Final verification selects an available numeric host port
once, so its BASE_URL remains valid through the restart hook.
+10
View File
@@ -0,0 +1,10 @@
{
"date": "2026-11-07",
"scope": "own temporary API, same container before and after docker restart",
"requested_host_port": "automatic",
"before": 65424,
"after": 65441,
"port_changed": true,
"result": "CONFIRMED",
"fix": "Choose a free numeric host port once for the clean-clone Compose project. Keep BASE_URL stable through the public persistence hook."
}