-
Notifications
You must be signed in to change notification settings - Fork 133
Expand file tree
/
Copy path.env.example
More file actions
36 lines (33 loc) · 947 Bytes
/
Copy path.env.example
File metadata and controls
36 lines (33 loc) · 947 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# SubTrackr Backend - Environment Variables
# Copy this file to .env and fill in your values.
# PostgreSQL
DB_HOST=localhost
DB_PORT=5432
DB_NAME=subtrackr
DB_USER=postgres
# Required: set a strong password
DB_PASSWORD=
# Redis
REDIS_HOST=localhost
REDIS_PORT=6379
# Optional: set if Redis requires authentication
REDIS_PASSWORD=
REDIS_DB=0
REDIS_DEFAULT_TTL_SECONDS=3600
REDIS_CONNECT_TIMEOUT_MS=5000
# Docker Compose Port Configurations (Change in your local .env to fix port conflicts)
COMPOSE_PORT_POSTGRES=5432
COMPOSE_PORT_REDIS=6379
COMPOSE_PORT_SOROBAN=8000
COMPOSE_PORT_BACKEND=3000
COMPOSE_PORT_ML=8001
COMPOSE_PORT_EXPO=8081
# Issue #600: serverless DB connection multiplexing via PgBouncer.
# Point the app at PgBouncer (:6432), not Postgres directly.
DB_PROXY_HOST=localhost
DB_PROXY_PORT=6432
DB_PROXY_AUTH_MODE=scram-256
DB_PROXY_TXN_POOLING=true
DB_PROXY_PREPARED_STATEMENTS=true
DB_PROXY_MAX_CONN=50
DB_LEAK_THRESHOLD_MS=30000