18 lines
615 B
Batchfile
18 lines
615 B
Batchfile
@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
|