lab3_and_3grade

This commit is contained in:
caramelteawithmint
2026-11-13 18:01:54 +03:00
parent ec540a1a72
commit 09e26c3c5a
28 changed files with 1494 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
set -eu
echo "Restarting API and Postgres (preserving volumes)..."
# Перезапускаем контейнеры, volumes остаются на месте
docker compose restart api1 api2 postgres
# Ждем, пока Postgres снова станет готов
echo "Waiting for Postgres to be healthy..."
sleep 5