This commit is contained in:
dimitar 2025-03-31 11:25:23 +02:00
parent 17813f7fad
commit 5b03e336e4
3 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1,6 @@
# backend/.dockerignore
node_modules
dist
.env
.env.*
*.log

26
backend/coolify.yaml Normal file
View File

@ -0,0 +1,26 @@
# backend/coolify.yaml
services:
backend:
build:
context: .
dockerfile: Dockerfile
environment:
- NODE_ENV=production
- PORT=3000
- DATABASE_URL=${DATABASE_URL}
- JWT_SECRET=${JWT_SECRET}
- CORS_ORIGINS=http://localhost:5173,https://placebo.mk,https://www.placebo.mk
ports:
- "3000:3000"
healthcheck:
test:
[
"CMD",
"wget",
"-q",
"--spider",
"http://localhost:3000/health || exit 1",
]
interval: 30s
timeout: 10s
retries: 3

View File

@ -21,7 +21,7 @@
"test:e2e": "jest --config ./test/jest-e2e.json",
"prisma:generate": "prisma generate",
"prisma:migrate:dev": "prisma migrate dev",
"prisma:migrate:deploy": "prisma migrate deploy"
"prisma:migrate": "prisma migrate deploy"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.679.0",