ЛР 2: PostgreSQL, сессии и Bearer-аутентификация (оценка 3)

This commit is contained in:
Яковлев Матвей Дмитриевич
2026-11-16 23:16:10 +01:00
parent 65003b6119
commit 975b46b8d2
15 changed files with 1035 additions and 21 deletions
+5
View File
@@ -0,0 +1,5 @@
@echo off
REM Windows equivalent of scripts/restart.sh for the local persistence hook.
cd /d "%~dp0.."
docker compose --env-file .env restart db api
exit /b %ERRORLEVEL%
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
set -eu
# Explicit persistence hook for lab2.
# Restart the API and the PostgreSQL storage that holds users, messages and sessions.
# Volumes are preserved: no down -v, no flush, no re-seed. Exit 0 when the action is done;
# the public test waits for /health/ready separately.
cd "$(dirname "$0")/.."
docker compose restart db api