Compare commits

..

2 Commits

Author SHA1 Message Date
yotakii
005edf2b69 Merge branch 'master' of https://git.atmata-group.com/ATMATA/zerp 2026-03-26 15:10:51 +03:00
yotakii
5f7e9e517f solve prisma connection 2026-03-26 15:07:06 +03:00
2 changed files with 11 additions and 2 deletions

View File

@@ -6,3 +6,6 @@ JWT_SECRET=your-super-secure-jwt-secret-change-this-now-2024
# Domain
DOMAIN=zerp.atmata-group.com
# Prisma / Database pooling
DATABASE_URL=postgresql://postgres:SecurePassword123!ChangeMe@postgres:5432/mind14_crm?schema=public&connection_limit=5&pool_timeout=20&connect_timeout=20

View File

@@ -24,11 +24,11 @@ services:
context: ./backend
dockerfile: Dockerfile
container_name: zerp_backend
restart: unless-stopped
restart: always
environment:
PORT: 5001
NODE_ENV: production
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD:-postgres123}@postgres:5432/mind14_crm?schema=public
DATABASE_URL: ${DATABASE_URL}
JWT_SECRET: ${JWT_SECRET:-z-crm-jwt-secret-change-in-production-NOW}
JWT_EXPIRES_IN: 7d
JWT_REFRESH_EXPIRES_IN: 30d
@@ -39,6 +39,12 @@ services:
condition: service_healthy
ports:
- "5001:5001"
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:5001/api/v1/health || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
command: sh -c "npx prisma migrate deploy && node dist/server.js"
frontend: