development

This commit is contained in:
Andreas Knuth 2025-11-08 17:08:26 -06:00
parent 3b51a98dec
commit 8113206e90
1 changed files with 7 additions and 7 deletions

View File

@ -5,14 +5,14 @@ services:
container_name: bizmatch-app-prod container_name: bizmatch-app-prod
working_dir: /app working_dir: /app
volumes: volumes:
- ./:/app # Code liegt hier direkt im Ordner der Compose - ./:/app # Code liegt hier direkt im Ordner der Compose
ports: ports:
- "3001:3000" # Host 3001 -> Container 3000 - '3001:3000' # Host 3001 -> Container 3000
env_file: env_file:
- path: ./env.prod - path: ./env.prod
required: true required: true
environment: environment:
- NODE_ENV=production # Prod-Modus (vorher stand fälschlich "development") - NODE_ENV=development # Prod-Modus (vorher stand fälschlich "development")
- DB_HOST=postgres-prod - DB_HOST=postgres-prod
- DB_PORT=5432 - DB_PORT=5432
- DB_NAME=${POSTGRES_DB} - DB_NAME=${POSTGRES_DB}
@ -28,10 +28,10 @@ services:
postgres-prod: postgres-prod:
container_name: bizmatchdb-prod container_name: bizmatchdb-prod
image: postgres:17-alpine # Version pinnen ist stabiler als "latest" image: postgres:17-alpine # Version pinnen ist stabiler als "latest"
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./bizmatchdb-data-prod:/var/lib/postgresql/data # Daten liegen im Server-Repo - ./bizmatchdb-data-prod:/var/lib/postgresql/data # Daten liegen im Server-Repo
env_file: env_file:
- path: ./env.prod - path: ./env.prod
required: true required: true
@ -40,10 +40,10 @@ services:
POSTGRES_USER: ${POSTGRES_USER} POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD} POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
ports: ports:
- "5433:5432" # Host 5433 -> Container 5432 - '5433:5432' # Host 5433 -> Container 5432
networks: networks:
- bizmatch-prod - bizmatch-prod
networks: networks:
bizmatch-prod: bizmatch-prod:
external: true # einmalig anlegen: docker network create bizmatch-prod external: true # einmalig anlegen: docker network create bizmatch-prod