16 lines
1.3 KiB
Bash
16 lines
1.3 KiB
Bash
#!/bin/sh
|
||
set -eu
|
||
# Перезапуск API, LB, pipeline, всех хранилищ (PostgreSQL, Redis, S3, RabbitMQ), OpenBao и стека
|
||
# наблюдаемости с сохранением volumes. После рестарта OpenBao запечатан: оператор выполняет
|
||
# unseal (здесь — scripts/bootstrap.py unseal с долями из secrets/operator), и только затем
|
||
# стартуют процессы, которым при запуске нужны секреты. Никаких down -v / повторного seed.
|
||
cd "$(dirname "$0")/.."
|
||
docker compose stop lb api reconciler relay worker
|
||
docker compose restart postgres redis s3 rabbitmq openbao otel-collector prometheus loki tempo grafana
|
||
${PYTHON:-python3} scripts/bootstrap.py unseal
|
||
until [ "$(docker inspect -f '{{.State.Health.Status}}' "$(docker compose ps -q postgres)")" = healthy ]; do sleep 1; done
|
||
until [ "$(docker inspect -f '{{.State.Health.Status}}' "$(docker compose ps -q redis)")" = healthy ]; do sleep 1; done
|
||
until [ "$(docker inspect -f '{{.State.Health.Status}}' "$(docker compose ps -q s3)")" = healthy ]; do sleep 1; done
|
||
until [ "$(docker inspect -f '{{.State.Health.Status}}' "$(docker compose ps -q rabbitmq)")" = healthy ]; do sleep 1; done
|
||
docker compose start api lb reconciler relay worker
|