FIx some for connect to postgresql
This commit is contained in:
@@ -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=
|
||||
|
||||
|
||||
Reference in New Issue
Block a user