Хранить вложения в приватном S3 и сверять их с PostgreSQL.

This commit is contained in:
2026-11-06 20:13:44 +03:00
parent ec540a1a72
commit a6bb7cbb8b
34 changed files with 3285 additions and 31 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
# Stop exactly one API replica and leave it stopped. Do not touch volumes or stores.
set -eu
cd "$(dirname "$0")/.."
: "${TARGET_INSTANCE_ID:?}"
case "$TARGET_INSTANCE_ID" in
api-1|api-2) ;;
*)
echo "unexpected instance" >&2
exit 2
;;
esac
docker compose --env-file .env stop -t 2 "$TARGET_INSTANCE_ID"