Implement PostgreSQL storage, sessions and persistence checks

This commit is contained in:
Daria0w0
2026-10-09 18:06:28 +03:00
parent 65003b6119
commit 83e3810d33
62 changed files with 4650 additions and 20 deletions
+18
View File
@@ -0,0 +1,18 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
snapshot() {
for service in api postgres; do
id=$(docker compose ps -q "$service")
test -n "$id"
docker inspect --format '{{.Name}} {{.Id}} {{.State.StartedAt}} {{.State.Status}} {{range .Mounts}}{{if eq .Type "volume"}}{{.Name}} {{end}}{{end}}' "$id"
done
}
snapshot > evidence/restart-containers-before.txt
docker compose stop api postgres
docker compose up -d --wait postgres
docker compose up -d --wait api
snapshot > evidence/restart-containers-after.txt
printf '%s\n' 'API and PostgreSQL restarted without removing volumes.'