Implement lab2 PostgreSQL sessions and Redis cache

This commit is contained in:
Polusikkkk
2026-10-16 18:23:50 +03:00
parent 65003b6119
commit 083dc49564
25 changed files with 2782 additions and 29 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/sh
set -eu
PROJECT_DIR="$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)"
cd "$PROJECT_DIR"
docker compose --env-file .env stop --timeout 10 api
docker compose --env-file .env restart --timeout 10 postgres redis
docker compose --env-file .env up \
-d \
--wait \
--wait-timeout 60 \
api redis