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
+2 -1
View File
@@ -50,7 +50,8 @@ services:
environment:
NODE_ENV: production
PORT: 3000
DATABASE_URL: ${DATABASE_URL:-postgresql://postgres:postgrespassword@postgres:5432/lucky_wheel?schema=public}
# همیشه هاست داخلی compose — اگر در Dokploy مقدار DATABASE_URL=localhost بگذارید اپ گیر می‌کند
DATABASE_URL: postgresql://${POSTGRES_USER:-postgres}:${POSTGRES_PASSWORD:-postgrespassword}@postgres:5432/${POSTGRES_DB:-lucky_wheel}?schema=public
REDIS_HOST: redis
REDIS_PORT: '6379'
REDIS_PASSWORD: ${REDIS_PASSWORD:-}