Собрать стенд из API, PostgreSQL и Valkey с хуком перезапуска

This commit is contained in:
2026-10-06 15:21:03 +03:00
parent f6acdf91e0
commit 7f599cb25e
10 changed files with 167 additions and 110 deletions
+17
View File
@@ -0,0 +1,17 @@
# Valkey is the only store of user sessions, so it is their source of truth.
# Every write is fsynced before the reply: an acknowledged login survives a
# crash or a restart. Only logins and logouts write; session lookups are reads
# and pay nothing for this.
appendonly yes
appendfsync always
dir /data
# The append-only file already persists everything; RDB snapshots are off.
save ""
# Sessions are never evicted to free memory: a full store refuses new logins
# (503) instead of silently logging users out.
maxmemory-policy noeviction
# requirepass comes from the compose secret, never from the repository.
include /run/secrets/valkey_auth