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>
This commit is contained in:
@@ -18,3 +18,11 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user