level 3 basics

This commit is contained in:
2026-10-26 16:42:32 +03:00
parent 3bd25a9127
commit 9d3de3b2d9
16 changed files with 703 additions and 126 deletions
+9 -2
View File
@@ -3,9 +3,16 @@
APP_HOST=0.0.0.0
APP_PORT=8080
APP_ENV=lab
LOG_LEVEL=info
SESSION_TTL_SECONDS=3600
# Choose credentials locally. File paths contain no secret values.
DATABASE_URL_FILE=/run/secrets/database_url
# Local synthetic database. Use a password without URL reserved characters.
# Compose injects DATABASE_URL into the API from these three values.
# The password below is a placeholder: change it in the untracked .env.
POSTGRES_USER=messenger
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:
SESSION_STORE=postgres
CACHE_URL_FILE=/run/secrets/cache_url