Собрать стенд из API, PostgreSQL и Valkey с хуком перезапуска
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user