Перенести мессенджер в PostgreSQL и сессии в Redis.

Подтверждённые сообщения и действующие сессии переживают перезапуск, история читается по индексу, копия восстанавливается в новый том.
This commit is contained in:
2026-10-23 12:50:45 +03:00
parent 65003b6119
commit f9b2fd11e0
29 changed files with 2933 additions and 35 deletions
+4
View File
@@ -0,0 +1,4 @@
@echo off
REM Same restart as scripts/restart.sh. Windows Python cannot exec a shebang script.
docker restart mtusi-lab2-api mtusi-lab2-postgres mtusi-lab2-redis
exit /b %ERRORLEVEL%
+5
View File
@@ -0,0 +1,5 @@
#!/bin/sh
# Restart the API and every store the API uses. Volumes stay in place.
# Do not seed, flush, or run compose down -v from here.
set -eu
docker restart mtusi-lab2-api mtusi-lab2-postgres mtusi-lab2-redis