Собрать стенд из API, PostgreSQL и Valkey с хуком перезапуска

This commit is contained in:
2026-10-06 15:21:03 +03:00
parent f6acdf91e0
commit 7f599cb25e
10 changed files with 167 additions and 110 deletions
+9
View File
@@ -0,0 +1,9 @@
#!/bin/sh
# Restart hook of `make test-persistence` (tests/resilience.py): stops the
# API, PostgreSQL and Valkey gracefully and starts the same containers again.
# Volumes and data are kept and nothing is re-seeded. The test hides the
# output, so failures surface through the exit code only.
set -eu
cd "$(dirname "$0")/.."
docker compose stop
docker compose up -d --wait