Files
mtusi2026lab4/scripts/restart.sh
2026-10-29 19:51:04 +03:00

10 lines
365 B
Bash
Executable File

#!/bin/sh
# Restart API and ALL state stores (PostgreSQL, Valkey, S3) keeping volumes.
set -eu
cd "$(dirname "$0")/.."
docker compose stop lb api reconciler
docker compose restart postgres valkey s3
# no recreation, only waits until the stores report healthy again
docker compose up -d --no-recreate --wait postgres valkey s3
docker compose start api reconciler lb