feat: add redis

This commit is contained in:
2026-10-21 11:01:29 +03:00
parent ab2bbeef83
commit 552b74eb95
10 changed files with 240 additions and 9 deletions
+4 -3
View File
@@ -1,11 +1,12 @@
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
# These are logical interface suggestions; map actual framework names in REPORT.md.
# .env is optional: compose.yaml has the same defaults.
# APP_PORT is the published host port (127.0.0.1); inside the container API listens on 8080.
APP_HOST=0.0.0.0
APP_PORT=8080
APP_ENV=lab
SESSION_TTL_SECONDS=3600
# Choose credentials locally. File paths contain no secret values.
# Generated by the secrets-init service into the "secrets" volume; fixed paths in compose.yaml.
DATABASE_URL_FILE=/run/secrets/database_url
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
# Sessions: PostgreSQL is the source of truth, Redis is a read-through cache (no persistence).
SESSION_STORE=postgres
CACHE_URL_FILE=/run/secrets/cache_url