chore: add restart policies and document prisma copy step

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jonathan
2026-07-10 17:22:36 +02:00
parent 3e44de093e
commit 52a0999f9b
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -1,6 +1,7 @@
services:
db:
image: postgres:17
restart: unless-stopped
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
@@ -17,6 +18,7 @@ services:
web:
build: ./web
restart: unless-stopped
environment:
DATABASE_URL: ${DATABASE_URL}
ports:
@@ -27,6 +29,7 @@ services:
worker:
build: ./worker
restart: unless-stopped
environment:
DATABASE_URL: ${DATABASE_URL}
depends_on:
+1
View File
@@ -2,6 +2,7 @@ FROM node:22-slim AS build
WORKDIR /app
RUN apt-get update && apt-get install -y openssl && rm -rf /var/lib/apt/lists/*
COPY package.json package-lock.json* ./
# Copy schema before install so package.json's postinstall (prisma generate) can run
COPY prisma ./prisma
RUN npm install
COPY . .