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) <noreply@anthropic.com>
This commit is contained in:
Artyom
2026-10-28 11:47:06 +03:00
co-authored by Claude Opus 5.5
parent ae8fb0a48e
commit 0796e291b7
+1 -1
View File
@@ -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}"