test
This commit is contained in:
parent
d550342492
commit
55959ce22d
|
|
@ -1,31 +1,42 @@
|
||||||
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
backend:
|
app:
|
||||||
build: ../../bizmatch-project/bizmatch-server # Dockerfile für NestJS
|
image: node:22-alpine
|
||||||
|
working_dir: /app
|
||||||
|
volumes:
|
||||||
|
- ~/git/bizmatch-project/bizmatch-server:/app
|
||||||
ports:
|
ports:
|
||||||
- "3000:3000" # Für lokale Entwicklung
|
- "3000:3000"
|
||||||
env_file: .env # Gemeinsame Umgebungsvariablen
|
|
||||||
environment:
|
environment:
|
||||||
- DATABASE_URL=${DATABASE_URL}
|
- NODE_ENV=production
|
||||||
- FIREBASE_PROJECT_ID=${FIREBASE_PROJECT_ID}
|
- DB_HOST=postgres
|
||||||
- FIREBASE_PRIVATE_KEY=${FIREBASE_PRIVATE_KEY}
|
- DB_PORT=5432
|
||||||
|
- DB_NAME=${POSTGRES_DB}
|
||||||
|
- DB_USER=${POSTGRES_USER}
|
||||||
|
- DB_PASSWORD=${POSTGRES_PASSWORD}
|
||||||
|
command: sh -c "npm install && npm run build --omit=dev && node dist/src/main.js"
|
||||||
|
restart: unless-stopped
|
||||||
|
depends_on:
|
||||||
|
- postgres
|
||||||
networks:
|
networks:
|
||||||
- bizmatch
|
- bizmatch
|
||||||
|
|
||||||
postgres:
|
postgres:
|
||||||
container_name: bizmatchdb
|
container_name: bizmatchdb
|
||||||
image: postgres:latest
|
image: postgres:latest
|
||||||
restart: always
|
restart: always
|
||||||
volumes:
|
volumes:
|
||||||
- ${PWD}/bizmatchdb-data:/var/lib/postgresql/data
|
- ${PWD}/bizmatchdb-data:/var/lib/postgresql/data
|
||||||
environment:
|
environment:
|
||||||
POSTGRES_DB: ${POSTGRES_DB}
|
POSTGRES_DB: ${POSTGRES_DB}
|
||||||
POSTGRES_USER: ${POSTGRES_USER}
|
POSTGRES_USER: ${POSTGRES_USER}
|
||||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
networks:
|
networks:
|
||||||
- bizmatch
|
- bizmatch
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
bizmatch:
|
bizmatch:
|
||||||
external: true # Externes Netzwerk, um mit Caddy zu kommunizieren
|
external: true
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue