10 lines
330 B
Bash
10 lines
330 B
Bash
#!/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 |