Files
chat_room/.env.example
T
mobiniqow fda1b130ff Add Docker support and docker-compose orchestration
Multi-stage Dockerfile for the Go API, plus a docker-compose.yml that
runs postgres + backend + both frontends together for local
full-stack dev (frontends built from the sibling repo directories).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-16 00:01:10 +03:30

29 lines
930 B
Bash

APP_ENV=development
APP_PORT=8080
DB_HOST=localhost
DB_PORT=5432
DB_USER=postgres
DB_PASSWORD=postgres
DB_NAME=dating_app
DB_SSLMODE=disable
JWT_ACCESS_SECRET=test-access-secret
JWT_REFRESH_SECRET=test-refresh-secret
JWT_ACCESS_TTL_MINUTES=1440
JWT_REFRESH_TTL_DAYS=30
OTP_EXPIRY_SECONDS=180
OTP_LENGTH=4
OTP_HASH_SECRET=test-otp-secret
ADMIN_BOOTSTRAP_PHONE=09120000000
# -------- فقط برای docker-compose (نیازی نیست موقع اجرای مستقیم go run باشه) --------
# DB_HOST رو docker-compose خودش موقع اجرای backend روی "postgres" ست می‌کنه؛
# مقدار بالا (localhost) فقط برای اجرای مستقیم روی سیستم خودت استفاده می‌شه.
WEB_PORT=3000
ADMIN_PORT=3001
# آدرسی که از مرورگر کاربر قابل‌دسترسیه (نه آدرس داخلی شبکه‌ی داکر)
PUBLIC_API_URL=http://localhost:8080/api/v1