forked from mtusi2026/mtusi2026lab2
36 lines
817 B
Bash
36 lines
817 B
Bash
# Copy to .env for your LOCAL synthetic test environment; never commit .env.
|
|
# Compose uses these values for interpolation in compose.yaml.
|
|
|
|
APP_HOST=0.0.0.0
|
|
APP_PORT=8080
|
|
APP_ENV=lab
|
|
|
|
POSTGRES_USER=messenger
|
|
POSTGRES_DB=messenger
|
|
|
|
SESSION_TTL_SECONDS=3600
|
|
SESSION_STORE=postgres
|
|
|
|
# File paths contain no secret values.
|
|
DATABASE_URL_FILE=/run/secrets/database_url
|
|
|
|
DB_MAX_CONNS=10
|
|
DB_MIN_CONNS=2
|
|
DB_MAX_CONN_LIFETIME=30m
|
|
DB_MAX_CONN_IDLE_TIME=5m
|
|
DB_HEALTH_CHECK_PERIOD=30s
|
|
DB_CONNECT_TIMEOUT=5s
|
|
DB_QUERY_TIMEOUT=3s
|
|
|
|
READINESS_TIMEOUT=2s
|
|
SHUTDOWN_TIMEOUT=10s
|
|
|
|
# Redis stores a disposable cache; PostgreSQL remains the source of truth.
|
|
CACHE_URL=redis://redis:6379/0
|
|
CACHE_TTL=5m
|
|
CACHE_OPERATION_TIMEOUT=250ms
|
|
CACHE_POOL_SIZE=10
|
|
|
|
# Optional Redis Insight profile binds its UI only to localhost.
|
|
REDIS_INSIGHT_PORT=5540
|