FIx some for connect to postgresql

This commit is contained in:
mahmood
2026-09-11 00:07:02 +03:30
parent 13c8eda4b2
commit c355165f0b
4 changed files with 95 additions and 13 deletions
+7 -8
View File
@@ -1,18 +1,17 @@
# کپی به env سرویس API در Dokploy (یا فایل .env کنار compose)
# Env برای Dokploy / compose
# دامنه‌ها:
# wheel.montzar.ir → سرویس client
# api.wheel.montzar.ir → سرویس api
# adm.wheel.montzar.ir → سرویس admin
# wheel.montzar.ir → سرویس client (port 80)
# api.wheel.montzar.ir → سرویس api (port 3000)
# adm.wheel.montzar.ir → سرویس admin (port 80)
POSTGRES_DB=lucky_wheel
POSTGRES_USER=postgres
POSTGRES_PASSWORD=CHANGE_ME_STRONG_PASSWORD
# پورت خارجی فقط برای DB (مثلاً DBeaver) — داخل شبکه همچنان 5432 است
# اگر 5432 روی سرور اشغال است مثلاً بگذارید 15432
# پورت خارجی فقط برای DB از بیرون (DBeaver). داخل شبکه همیشه 5432 روی سرویس postgres است.
EXPORT_DB_PORT=15432
# داخل شبکه compose هاست postgres است (نه localhost و نه IP عمومی)
DATABASE_URL=postgresql://postgres:CHANGE_ME_STRONG_PASSWORD@postgres:5432/lucky_wheel?schema=public
# نکته: DATABASE_URL را جدا ست نکنید — در docker-compose از POSTGRES_* و هاست "postgres" ساخته می‌شود.
REDIS_PASSWORD=