imkFinal/backend/coolify.yaml
2025-03-31 11:25:23 +02:00

27 lines
580 B
YAML

# 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