diff --git a/Dockerfile b/Dockerfile index 2341cf5..7685379 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,6 +35,11 @@ RUN pnpm install --frozen-lockfile # Copy built application from builder COPY --from=builder /app/build ./build +# Copy drizzle config and schema for migrations +COPY drizzle.config.ts ./ +COPY tsconfig.json ./ +COPY src/lib/server/db ./src/lib/server/db + # Install netcat for database readiness check RUN apk add --no-cache netcat-openbsd diff --git a/compose.yaml b/compose.yaml index 1ba4f66..f6909c9 100644 --- a/compose.yaml +++ b/compose.yaml @@ -2,8 +2,8 @@ services: db: image: postgres restart: always - # ports: - # - 5432:5432 + ports: + - 5432:5432 environment: POSTGRES_USER: root POSTGRES_PASSWORD: mysecretpassword