SEO/AEO, Farb schema, breadcrumbs
This commit is contained in:
@@ -1,21 +1,19 @@
|
||||
# ~/git/bizmatch-project/bizmatch-server/docker-compose.yml
|
||||
services:
|
||||
app:
|
||||
image: node:22-alpine
|
||||
container_name: bizmatch-app
|
||||
working_dir: /app
|
||||
volumes:
|
||||
- ./:/app # Code liegt hier direkt im Ordner der Compose
|
||||
- ./:/app
|
||||
- node_modules:/app/node_modules
|
||||
ports:
|
||||
- '3001:3000' # Host 3001 -> Container 3000
|
||||
- '3001:3001'
|
||||
env_file:
|
||||
- path: ./.env
|
||||
required: true
|
||||
- .env
|
||||
environment:
|
||||
- NODE_ENV=development # Prod-Modus (vorher stand fälschlich "development")
|
||||
- NODE_ENV=development
|
||||
- DATABASE_URL
|
||||
# Hinweis: npm ci nutzt package-lock.json; falls nicht vorhanden, nimm "npm install"
|
||||
command: sh -c "npm ci && npm run build && node dist/src/main.js"
|
||||
command: sh -c "if [ ! -f node_modules/.installed ]; then npm ci && touch node_modules/.installed; fi && npm run build && node dist/src/main.js"
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- postgres
|
||||
@@ -24,22 +22,27 @@ services:
|
||||
|
||||
postgres:
|
||||
container_name: bizmatchdb
|
||||
image: postgres:17-alpine # Version pinnen ist stabiler als "latest"
|
||||
image: postgres:17-alpine
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
- ${PWD}/bizmatchdb-data:/var/lib/postgresql/data # Daten liegen im Server-Repo
|
||||
- bizmatch-db-data:/var/lib/postgresql/data
|
||||
env_file:
|
||||
- path: ./.env
|
||||
required: true
|
||||
- .env
|
||||
environment:
|
||||
POSTGRES_DB: ${POSTGRES_DB}
|
||||
POSTGRES_USER: ${POSTGRES_USER}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
ports:
|
||||
- '5433:5432' # Host 5433 -> Container 5432
|
||||
- '5434:5432'
|
||||
networks:
|
||||
- bizmatch
|
||||
|
||||
volumes:
|
||||
bizmatch-db-data:
|
||||
driver: local
|
||||
node_modules:
|
||||
driver: local
|
||||
|
||||
networks:
|
||||
bizmatch:
|
||||
external: true # einmalig anlegen: docker network create bizmatch-prod
|
||||
external: true
|
||||
|
||||
Reference in New Issue
Block a user