forked from mtusi2026/mtusi2026lab5
Исходники, миграции, Dockerfile и стенд lab4 нужны как основа асинхронной обработки вложений. Co-authored-by: Cursor <cursoragent@cursor.com>
11 lines
288 B
Bash
11 lines
288 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 api
|
|
else
|
|
docker compose restart postgres redis s3 api
|
|
fi
|