Реализация лабораторной 2: PostgreSQL, сессии, Valkey-кэш
Skeleton contracts / contracts (pull_request) Canceled after 0s

This commit is contained in:
Tmribob
2026-10-30 19:37:21 +03:00
parent 65003b6119
commit 3df9b09896
44 changed files with 3519 additions and 17 deletions
+17
View File
@@ -0,0 +1,17 @@
@echo off
rem Windows copy of scripts/restart.sh for `make test-persistence`.
rem Recreates the API and BOTH state stores from the same images, keeping the
rem named volumes (pgdata, valkeydata): no `down -v`, no seed, no data reset.
setlocal
cd /d "%~dp0.."
echo restart: stopping api, postgres and valkey (volumes preserved)
docker compose --env-file .env down --timeout 15
if errorlevel 1 exit /b 1
echo restart: starting api, postgres and valkey
docker compose --env-file .env up -d --wait --wait-timeout 120
if errorlevel 1 exit /b 1
docker compose --env-file .env ps
echo stack_restarted volumes_preserved