ЛР3 - БПИ2303 - Стругов - на 4

This commit is contained in:
wanderinho
2026-11-10 15:19:31 +03:00
parent 0ab3a341aa
commit bdccb3ad7d
33 changed files with 3591 additions and 23 deletions
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
docker compose up -d --scale api=2 --no-recreate api
# Explicitly start any stopped API container (Compose does not necessarily do so).
for id in $(docker compose ps -a -q api); do
if [ "$(docker inspect --format '{{.State.Running}}' "$id")" = false ]; then docker start "$id" >/dev/null; fi
done