13 lines
267 B
Batchfile
13 lines
267 B
Batchfile
@echo off
|
|
cd /d "%~dp0.."
|
|
if "%TARGET_INSTANCE_ID%"=="api1" (
|
|
docker compose stop api1-tls api1
|
|
exit /b %ERRORLEVEL%
|
|
)
|
|
if "%TARGET_INSTANCE_ID%"=="api2" (
|
|
docker compose stop api2-tls api2
|
|
exit /b %ERRORLEVEL%
|
|
)
|
|
echo Unknown TARGET_INSTANCE_ID 1>&2
|
|
exit /b 2
|