forked from mtusi2026/mtusi2026lab2
Перенести мессенджер в PostgreSQL и сессии в Redis.
Подтверждённые сообщения и действующие сессии переживают перезапуск, история читается по индексу, копия восстанавливается в новый том. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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%
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user