11 lines
328 B
Batchfile
11 lines
328 B
Batchfile
@echo off
|
|
setlocal
|
|
cd /d "%~dp0\.."
|
|
if "%API_REPLICAS%"=="" set API_REPLICAS=2
|
|
docker compose --env-file .env config --quiet
|
|
if errorlevel 1 exit /b 1
|
|
docker compose --env-file .env up -d --build --scale api=%API_REPLICAS%
|
|
if errorlevel 1 exit /b 1
|
|
echo stack up: api scale=%API_REPLICAS%, entry http://127.0.0.1:8080
|
|
exit /b 0
|