Add resilient Valkey User cache with PostgreSQL authorization

This commit is contained in:
Самохвалов Андрей Ремович
2026-10-02 11:25:10 +03:00
parent ed7a27629d
commit d59d3f4adc
8 changed files with 205 additions and 13 deletions
+9
View File
@@ -23,6 +23,7 @@ services:
APP_HOST: 0.0.0.0
APP_PORT: 8080
DATABASE_URL_FILE: /run/secrets/database_url
VALKEY_URL: redis://valkey:6379/0
SESSION_TTL_SECONDS: ${SESSION_TTL_SECONDS:-3600}
secrets:
- database_url
@@ -38,6 +39,14 @@ services:
retries: 20
start_period: 5s
valkey:
image: valkey/valkey:8.0.2-alpine
healthcheck:
test: ["CMD", "valkey-cli", "ping"]
interval: 2s
timeout: 2s
retries: 20
secrets:
postgres_password:
file: ./secrets/postgres_password