This commit is contained in:
Andreas Knuth 2025-08-01 12:41:35 -05:00
parent 0ce09ef969
commit 8bb05f499f
1 changed files with 4 additions and 4 deletions

View File

@ -7,6 +7,8 @@ services:
- ~/git/bizmatch-project-prod/bizmatch-server:/app # Verwende Prod-Checkout
ports:
- "3001:3000" # Neu: Host-Port 3001, Container-Port bleibt 3000
env_file:
- ./.env.prod # Neu: Separate Env-File für Prod
environment:
- NODE_ENV=development # Neu: Production-Modus (für Nest.js-Config)
- DB_HOST=postgres-prod # Neu: Passe an neuen Service-Namen
@ -14,8 +16,6 @@ services:
- DB_NAME=${POSTGRES_DB} # Neu: Separate DB-Name aus Env-File
- DB_USER=${POSTGRES_USER}
- DB_PASSWORD=${POSTGRES_PASSWORD}
env_file:
- ~/git/docker/app/.env.prod # Neu: Separate Env-File für Prod
command: sh -c "npm install && npm run build && node dist/src/main.js" # Entferne --omit=dev für Prod
restart: unless-stopped
depends_on:
@ -29,12 +29,12 @@ services:
restart: always
volumes:
- ${PWD}/bizmatchdb-data-prod:/var/lib/postgresql/data # Neu: Separates Daten-Volume
env_file:
- ./.env.prod # Neu: Separate Env-File für Prod
environment:
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
env_file:
- ~/git/docker/app/.env.prod # Neu: Separate Env-File für Prod
ports:
- "5433:5432" # Neu: Host-Port 5433, Container-Port bleibt 5432
networks: