all for lab4

This commit is contained in:
2026-11-08 18:17:48 +03:00
parent c1bd817abf
commit fc22dcc4a4
72 changed files with 12880 additions and 102 deletions
+40 -5
View File
@@ -3,11 +3,46 @@ set -eu
cd "$(dirname "$0")/.."
docker compose stop -t 20 api lb
mkdir -p .local-logs
exec > .local-logs/restart.log 2>&1
docker compose restart postgres redis
set -x
docker compose up -d --no-deps --no-recreate \
--wait --wait-timeout 30 postgres redis
date -u
docker compose start api lb
echo "Stopping API and load balancer"
docker compose stop -t 10 api lb
echo "Restarting persistent services"
docker compose restart -t 10 postgres redis minio
echo "Waiting for persistent services"
docker compose up -d \
--no-build \
--pull never \
--no-deps \
--no-recreate \
--wait \
--wait-timeout 25 \
postgres redis minio
echo "Starting API"
docker compose up -d \
--no-build \
--pull never \
--no-deps \
--no-recreate \
--wait \
--wait-timeout 45 \
api
echo "Starting load balancer without dependencies"
docker compose up -d \
--no-build \
--pull never \
--no-deps \
--no-recreate \
lb
echo "Restart completed"
date -u