Files
mtusi2026lab5-fork/scripts/restart.sh
T

9 lines
378 B
Bash

#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
# Restart the LB, every API replica, PostgreSQL and MinIO. Volumes stay; nothing is re-seeded.
docker compose --env-file .env stop lb api
docker compose --env-file .env restart postgres minio
# Brings back all replicas (including one left stopped by stop-one.sh); migrate re-runs as a no-op.
docker compose --env-file .env up -d --wait