Files
mtusi2026lab3/scripts/restart.sh
T

8 lines
302 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/sh
# Перезапуск API (все реплики), LB и PostgreSQL с сохранением volume.
# Не выполняет down -v, не пересоздаёт БД и не повторяет seed.
set -eu
cd "$(dirname "$0")/.."
docker compose restart db
docker compose restart api lb