backend fixes

This commit is contained in:
Sascha Kühl 2025-04-21 21:49:03 +02:00
parent 05ead54051
commit d10b7efed9
3 changed files with 10 additions and 9 deletions

View File

@ -1,4 +1,3 @@
.idea
node_modules
npm-debug.log
.env.*

View File

@ -24,7 +24,7 @@ RUN --mount=type=bind,source=package.json,target=package.json \
npm ci --include=dev
USER node
COPY . .
CMD ["npm", "run", "dev"]
CMD ["npm", "run", "start:dev"]
#FROM node:20-alpine as build

View File

@ -6,11 +6,13 @@ services:
secrets:
- db-password
environment:
POSTGRES_DB: bullpen-prod
POSTGRES_USER: test
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD_FILE: /run/secrets/db-password
expose:
- 5432
ports:
- "15432:5432"
volumes:
- db_data:/var/lib/postgresql/data
healthcheck:
@ -29,12 +31,12 @@ services:
- "8124:8080"
container_name: bullpen
environment:
NODE_ENV: production
POSTGRES_HOST: db
POSTGRES_USER: test
NODE_ENV: development
POSTGRES_HOST: ${DB_HOST}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD_FILE: /run/secrets/db-password
POSTGRES_DB: bullpen-prod
POSTGRES_PORT: 5432
POSTGRES_DB: ${DB_NAME}
POSTGRES_PORT: ${DB_PORT}
secrets:
- db-password
volumes: