level 4: redis cache etc

This commit is contained in:
2026-10-26 17:50:20 +03:00
parent 9d3de3b2d9
commit 175a8d8bfd
14 changed files with 686 additions and 78 deletions
+4 -2
View File
@@ -13,6 +13,8 @@ POSTGRES_PASSWORD=replace-with-a-local-password
POSTGRES_DB=messenger
# Optional. When set, the API reads the URL from this file instead of DATABASE_URL.
# DATABASE_URL_FILE=/run/secrets/database_url
# Optional on 3, required use on 4 in lab2; Redis OR Valkey:
# Optional on 3, required use on 4 in lab2; Redis OR Valkey.
# PostgreSQL stores the session. Redis caches the lookup and does not keep its own volume.
SESSION_STORE=postgres
CACHE_URL_FILE=/run/secrets/cache_url
# Compose injects REDIS_URL. When set, this file wins and is not logged.
# CACHE_URL_FILE=/run/secrets/cache_url