Files
mtusi2026lab2/scripts/restart.sh

10 lines
427 B
Bash
Executable File
Raw Permalink 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
set -eu
# Перезапуск API и всех используемых хранилищ (PostgreSQL, Valkey) с сохранением
# volumes: никаких down -v, flush или повторного seed. Готовность ждёт тест.
cd "$(dirname "$0")/.."
ENV_FILE="${ENV_FILE:-.env}"
docker compose --env-file "$ENV_FILE" restart postgres valkey
docker compose --env-file "$ENV_FILE" restart api