Skip to content
This repository was archived by the owner on Mar 16, 2026. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/backend/prisma.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "dotenv/config";
// import "dotenv/config";
import { defineConfig } from "prisma/config";

export default defineConfig({
Expand Down
15 changes: 11 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ services:
command: sh -c "pnpm prisma generate && pnpm prisma migrate deploy && pnpm prisma db seed && pnpm run dev"
ports:
- "3000:3000"
env_file:
- ./apps/backend/.env
environment:
- NODE_ENV=development
- PORT=3000
- DATABASE_URL=postgresql://postgres:${POSTGRES_PASSWORD}@database:5432/${POSTGRES_DB}
- DIRECT_URL=postgresql://postgres:${POSTGRES_PASSWORD}@database:5432/${POSTGRES_DB}
- JWT_SECRET=${JWT_SECRET}
- FROM_EMAIL=${FROM_EMAIL}
depends_on:
database:
condition: service_healthy
Expand All @@ -20,7 +21,13 @@ services:
- /app/node_modules
restart: unless-stopped
healthcheck:
test: [ "CMD", "node", "-e", "require('http').get('http://localhost:3000/api', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })" ]
test:
[
"CMD",
"node",
"-e",
"require('http').get('http://localhost:3000/api', (res) => { process.exit(res.statusCode === 200 ? 0 : 1) })",
]
interval: 30s
timeout: 10s
retries: 3
Expand Down Expand Up @@ -53,7 +60,7 @@ services:
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres" ]
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 5s
retries: 5
Expand Down
Loading