Implement durable S3 attachments and reconciliation

This commit is contained in:
Tmribob
2026-11-07 00:29:30 +03:00
parent ec540a1a72
commit 71d72c88b9
57 changed files with 4660 additions and 37 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
# Restart hook for `make test-persistence ACTION_SCRIPT=scripts/restart.sh`.
# Restarts every long-lived API and storage process while preserving volumes.
set -eu
cd "$(dirname "$0")/.."
ENV_FILE="${COMPOSE_ENV_FILE:-.env}"
printf '%s\n' "restart: restarting API, PostgreSQL, Valkey and S3 (volumes preserved)"
# The resilience test owns readiness waiting. The persistent bucket was already
# created by the idempotent one-shot s3-init bootstrap service.
docker compose --env-file "$ENV_FILE" restart --timeout 15 postgres valkey s3 api-1 api-2 nginx
docker compose --env-file "$ENV_FILE" ps
printf '%s\n' "stack_restarted volumes_preserved"