Добавить PostgreSQL и сессии для лабораторной 2.

Пароли хранятся как Argon2id, сессии переживают перезапуск базы.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-13 07:02:23 +03:00
co-authored by Cursor
parent 65003b6119
commit a3960f45ca
20 changed files with 1759 additions and 14 deletions
+2
View File
@@ -9,3 +9,5 @@ DATABASE_URL_FILE=/run/secrets/database_url
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
SESSION_STORE=postgres
CACHE_URL_FILE=/run/secrets/cache_url
# Local compose only. Put the real value in .env, never in git.
POSTGRES_PASSWORD=replace-with-a-local-password