Files
mtusi2026lab7/scripts/restart.sh
T
dawudukandCursor 54b4b9e509 Перенести реализацию мессенджера из lab6 в skeleton lab7.
Контракт, публичные тесты и README задания оставлены от lab7.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-26 19:23:53 +03:00

11 lines
320 B
Bash

#!/bin/sh
# Restart API replicas and every store they use. Volumes are kept.
set -eu
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$ROOT"
if [ -f .env ]; then
docker compose --env-file .env restart postgres redis s3 rabbitmq api worker
else
docker compose restart postgres redis s3 rabbitmq api worker
fi