From 0796e291b701cfd0551912489a5e84b86aba9098 Mon Sep 17 00:00:00 2001 From: Artyom Date: Wed, 28 Oct 2026 11:47:06 +0300 Subject: [PATCH] Restart containers in place in the restart hook After make up, which builds with --build, a plain up in the restart hook saw a different service hash and recreated migrate and the API replicas instead of starting the stopped ones, so the replicas came back with new hostnames. The hook now passes --no-recreate: lb and the replicas are the same containers restarted, migrate reruns in its old container, and only volumes and data carry state across the restart. Co-Authored-By: Claude Opus 5.5 (1M context) --- scripts/restart.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/restart.sh b/scripts/restart.sh index 20b252c9..47645b40 100755 --- a/scripts/restart.sh +++ b/scripts/restart.sh @@ -9,4 +9,4 @@ done [ -n "$stores" ] || { echo "no state services found" >&2; exit 3; } docker compose stop lb "${API_SERVICE:-api}" docker compose restart $stores -docker compose up -d --wait --wait-timeout "${WAIT_TIMEOUT:-75}" +docker compose up -d --no-recreate --wait --wait-timeout "${WAIT_TIMEOUT:-75}"