14 lines
280 B
Batchfile
14 lines
280 B
Batchfile
@echo off
|
|
cd /d "%~dp0.."
|
|
|
|
if /I "%TARGET_INSTANCE_ID%"=="api1" (
|
|
docker compose --env-file .env stop api1 >nul 2>&1
|
|
exit /b %errorlevel%
|
|
)
|
|
|
|
if /I "%TARGET_INSTANCE_ID%"=="api2" (
|
|
docker compose --env-file .env stop api2 >nul 2>&1
|
|
exit /b %errorlevel%
|
|
)
|
|
|
|
exit /b 1 |