Files
mtusi2026lab3-fork/.env.example
T

40 lines
1.2 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
# These are logical interface suggestions; map actual framework names in REPORT.md.
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.
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
API_REPLICAS=2
# --- Ресурсы API-реплики (на одну реплику) ---
# Серия A трека 1 (фиксированный total): 1×1.0/512M, 2×0.5/256M, 4×0.25/128M
API_CPUS=0.5
API_MEMORY=256M
API_CPU_RESERVATION=0.1
API_MEMORY_RESERVATION=64M
# --- Ресурсы Postgres ---
POSTGRES_CPUS=1.0
POSTGRES_MEMORY=1G
POSTGRES_CPU_RESERVATION=0.25
POSTGRES_MEMORY_RESERVATION=256M
# --- Ресурсы Redis ---
REDIS_CPUS=0.5
REDIS_MEMORY=256M
# --- Публичный порт LB на хосте ---
LB_PORT=8080
# --- TTL сессий и идемпотентности ---
SESSION_TTL_SECONDS=3600
IDEMPOTENCY_TTL_SECONDS=86400
# --- Graceful drain при SIGTERM ---
SHUTDOWN_DRAIN_SECONDS=3