Fix container port

This commit is contained in:
mahmood
2026-09-10 23:44:59 +03:30
parent 0e62ab6017
commit d7881543c9
2 changed files with 14 additions and 12 deletions
+3 -2
View File
@@ -7,8 +7,9 @@
POSTGRES_DB=lucky_wheel
POSTGRES_USER=postgres
POSTGRES_PASSWORD=CHANGE_ME_STRONG_PASSWORD
# پورت خارجی برای اتصال از بیرون (مثلاً DBeaver) — داخل شبکه همچنان 5432 است
EXPORT_DB_PORT=5432
# پورت خارجی فقط برای DB (مثلاً DBeaver) — داخل شبکه همچنان 5432 است
# اگر 5432 روی سرور اشغال است مثلاً بگذارید 15432
EXPORT_DB_PORT=15432
# داخل شبکه compose هاست postgres است (نه localhost)
DATABASE_URL=postgresql://postgres:CHANGE_ME_STRONG_PASSWORD@postgres:5432/lucky_wheel?schema=public
+11 -10
View File
@@ -1,8 +1,8 @@
# Production / Dokploy
# دامنه‌ها را در UIی Dokploy به سرویس‌ها ببندید:
# client → https://wheel.montzar.ir
# api → https://api.wheel.montzar.ir (port 3000)
# admin → https://adm.wheel.montzar.ir
# دامنه‌ها را در UIی Dokploy به سرویس‌ها ببندید (پورت کانتینر):
# client → https://wheel.montzar.ir (80)
# api → https://api.wheel.montzar.ir (3000)
# admin → https://adm.wheel.montzar.ir (80)
#
# بیلد لوکال قبل از push:
# pnpm install && pnpm run build:release
@@ -44,8 +44,9 @@ services:
context: .
dockerfile: apps/api/Dockerfile
restart: unless-stopped
ports:
- '3000:3000'
# بدون ports روی هاست — Dokploy با دامنه به پورت داخلی 3000 وصل می‌شود
expose:
- '3000'
environment:
NODE_ENV: production
PORT: 3000
@@ -82,8 +83,8 @@ services:
context: .
dockerfile: apps/admin/Dockerfile
restart: unless-stopped
ports:
- '8080:80'
expose:
- '80'
depends_on:
- api
@@ -92,8 +93,8 @@ services:
context: .
dockerfile: apps/client/Dockerfile
restart: unless-stopped
ports:
- '8081:80'
expose:
- '80'
depends_on:
- api