Files
2026-10-16 19:49:48 +03:00

16 lines
910 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
=== Persistence on Docker Compose (Windows 11 + Docker Desktop) ===
Дата: 2026-10-16 19:28
Шаги:
1. POST /api/v1/users (username=persist, password 12+) -> 201
2. POST /api/v1/auth/sessions (Basic) -> 201, получен Bearer-токен
3. GET /api/v1/users/me с Bearer -> 200 OK (username=persist)
4. docker compose stop api valkey postgres
5. docker compose up -d -> migrate пропустил миграции, api healthy
6. GET /api/v1/users/me тем же Bearer-токеном ПОСЛЕ рестарта -> 200 OK
Вывод: PostgreSQL сохранил данные в volume pgdata.
Valkey-кэш потерян (RAM), но при промахе сессия читается из PostgreSQL.
Пользователи, сообщения и действующие сессии переживают полный рестарт
всех хранилищ без удаления volumes.