Реализовать лабораторную 4 на оценку 5

Добавить приватное S3-хранилище, вложения, presigned upload, reconciler и доказательства.
This commit is contained in:
Чиняева
2026-11-07 01:37:21 +03:00
parent ec540a1a72
commit f39ae06ef3
69 changed files with 5254 additions and 31 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
# Restart API and ALL state stores without deleting named volumes.
# PostgreSQL and Redis keep their volumes; the public persistence test polls
# /health/ready itself, so this hook only performs the restart and returns
# non-zero on a Compose error.
set -eu
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$ROOT"
if [ ! -f .env ]; then
echo "missing .env; copy .env.example and set local synthetic credentials" >&2
exit 2
fi
# Do not restart the one-shot migrate service here: the schema is already
# persisted in the PostgreSQL volume. Restart every long-running component.
docker compose --env-file .env restart postgres redis seaweedfs api lb