@echo off setlocal cd /d "%~dp0.." if "%COMPOSE_ENV_FILE%"=="" set COMPOSE_ENV_FILE=.env echo restart: stopping api, postgres and valkey (volumes preserved) docker compose --env-file %COMPOSE_ENV_FILE% down --timeout 15 if errorlevel 1 exit /b 1 echo restart: starting api, postgres and valkey docker compose --env-file %COMPOSE_ENV_FILE% up -d --wait --wait-timeout 120 if errorlevel 1 exit /b 1 docker compose --env-file %COMPOSE_ENV_FILE% ps echo stack_restarted volumes_preserved exit /b 0