Реализация лабораторной 2: PostgreSQL, сессии, Valkey-кэш
Skeleton contracts / contracts (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user