Подгрузка всех рабочих файлов из lab3

This commit is contained in:
2026-11-23 14:39:32 +03:00
parent ec540a1a72
commit d848d48ca6
13 changed files with 898 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
@echo off
cd /d %~dp0\..
echo Restarting API and Database...
docker compose restart api-1 api-2 postgres
exit /b 0
+13
View File
@@ -0,0 +1,13 @@
@echo off
setlocal
cd /d %~dp0\..
if "%TARGET_INSTANCE_ID%"=="" (
echo TARGET_INSTANCE_ID is not set 1>&2
exit /b 2
)
if "%TARGET_INSTANCE_ID%"=="api-1" (set svc=api-1) else if "%TARGET_INSTANCE_ID%"=="api-2" (set svc=api-2) else (
echo unknown TARGET_INSTANCE_ID: %TARGET_INSTANCE_ID% 1>&2
exit /b 2
)
docker compose stop %svc%
exit /b %errorlevel%