This commit is contained in:
Andreas Knuth 2025-07-27 15:55:20 -05:00
parent 55959ce22d
commit 53827a8277
1 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,3 @@
version: '3.8'
services: services:
app: app:
image: node:22-alpine image: node:22-alpine
@ -15,7 +13,7 @@ services:
- DB_NAME=${POSTGRES_DB} - DB_NAME=${POSTGRES_DB}
- DB_USER=${POSTGRES_USER} - DB_USER=${POSTGRES_USER}
- DB_PASSWORD=${POSTGRES_PASSWORD} - DB_PASSWORD=${POSTGRES_PASSWORD}
command: sh -c "npm install && npm run build --omit=dev && node dist/src/main.js" command: sh -c "npm install && npm install @nestjs/cli && npm run build --omit=dev && node dist/src/main.js"
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
- postgres - postgres