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_DB=lucky_wheel
POSTGRES_USER=postgres POSTGRES_USER=postgres
POSTGRES_PASSWORD=CHANGE_ME_STRONG_PASSWORD POSTGRES_PASSWORD=CHANGE_ME_STRONG_PASSWORD
# پورت خارجی برای اتصال از بیرون (مثلاً DBeaver) — داخل شبکه همچنان 5432 است # پورت خارجی فقط برای DB (مثلاً DBeaver) — داخل شبکه همچنان 5432 است
EXPORT_DB_PORT=5432 # اگر 5432 روی سرور اشغال است مثلاً بگذارید 15432
EXPORT_DB_PORT=15432
# داخل شبکه compose هاست postgres است (نه localhost) # داخل شبکه compose هاست postgres است (نه localhost)
DATABASE_URL=postgresql://postgres:CHANGE_ME_STRONG_PASSWORD@postgres:5432/lucky_wheel?schema=public DATABASE_URL=postgresql://postgres:CHANGE_ME_STRONG_PASSWORD@postgres:5432/lucky_wheel?schema=public
+11 -10
View File
@@ -1,8 +1,8 @@
# Production / Dokploy # Production / Dokploy
# دامنه‌ها را در UIی Dokploy به سرویس‌ها ببندید: # دامنه‌ها را در UIی Dokploy به سرویس‌ها ببندید (پورت کانتینر):
# client → https://wheel.montzar.ir # client → https://wheel.montzar.ir (80)
# api → https://api.wheel.montzar.ir (port 3000) # api → https://api.wheel.montzar.ir (3000)
# admin → https://adm.wheel.montzar.ir # admin → https://adm.wheel.montzar.ir (80)
# #
# بیلد لوکال قبل از push: # بیلد لوکال قبل از push:
# pnpm install && pnpm run build:release # pnpm install && pnpm run build:release
@@ -44,8 +44,9 @@ services:
context: . context: .
dockerfile: apps/api/Dockerfile dockerfile: apps/api/Dockerfile
restart: unless-stopped restart: unless-stopped
ports: # بدون ports روی هاست — Dokploy با دامنه به پورت داخلی 3000 وصل می‌شود
- '3000:3000' expose:
- '3000'
environment: environment:
NODE_ENV: production NODE_ENV: production
PORT: 3000 PORT: 3000
@@ -82,8 +83,8 @@ services:
context: . context: .
dockerfile: apps/admin/Dockerfile dockerfile: apps/admin/Dockerfile
restart: unless-stopped restart: unless-stopped
ports: expose:
- '8080:80' - '80'
depends_on: depends_on:
- api - api
@@ -92,8 +93,8 @@ services:
context: . context: .
dockerfile: apps/client/Dockerfile dockerfile: apps/client/Dockerfile
restart: unless-stopped restart: unless-stopped
ports: expose:
- '8081:80' - '80'
depends_on: depends_on:
- api - api