forked from mtusi2026/mtusi2026lab3
12 lines
358 B
Batchfile
12 lines
358 B
Batchfile
@echo off
|
|
setlocal
|
|
cd /d "%~dp0.."
|
|
docker compose --env-file .env stop --timeout 5 lb api1 api2 redis postgres
|
|
if errorlevel 1 exit /b 1
|
|
docker compose --env-file .env up -d --wait postgres redis
|
|
if errorlevel 1 exit /b 1
|
|
docker compose --env-file .env up -d --no-deps api1 api2 lb
|
|
if errorlevel 1 exit /b 1
|
|
python scripts\wait_ready.py
|
|
exit /b %ERRORLEVEL%
|