chore: restrukturierung der microservices in dev/lobby und dev/sector-dev (monorepo)

This commit is contained in:
2026-06-08 22:08:44 +02:00
parent 87f4d935c4
commit c1eb570b43
90 changed files with 10481 additions and 2 deletions
+89
View File
@@ -0,0 +1,89 @@
# ==============================================================================
# Void-Genesis - Sektor Dev-Umgebung
# ==============================================================================
services:
# ----------------------------------------------------------------------------
# 1. Sektor-Datenbank (PostgreSQL)
# ----------------------------------------------------------------------------
sector-db:
image: postgres:16-alpine
container_name: void_sector_db
restart: unless-stopped
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_USER: ${POSTGRES_USER}
PGPASSWORD: ${POSTGRES_PASSWORD_SECTOR}
POSTGRES_DB: ${POSTGRES_DB}
ports:
- "${PORT_DB}:5432"
volumes:
- ./data/postgres:/var/lib/postgresql/data
networks:
- void_sector_network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${POSTGRES_USER} -d ${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
# ----------------------------------------------------------------------------
# 2. Sektor-Backend (Node.js)
# ----------------------------------------------------------------------------
sector-backend:
build:
context: ./sector-backend
dockerfile: Dockerfile.dev
container_name: void_sector_backend
restart: unless-stopped
depends_on:
sector-db:
condition: service_healthy
volumes:
- ./sector-backend:/app
- /app/node_modules
ports:
- "${PORT_BACKEND}:3000"
environment:
- DB_HOST=sector-db
- DB_PORT=5432
- DB_USER=${POSTGRES_USER}
- DB_PASS=${POSTGRES_PASSWORD}
- DB_NAME=${POSTGRES_DB}
- NODE_ENV=development
- JWT_ACCESS_SECRET=${JWT_ACCESS_SECRET}
- JWT_REFRESH_SECRET=${JWT_REFRESH_SECRET}
networks:
- void_sector_network
- npm_network
# ----------------------------------------------------------------------------
# 3. Sektor-Frontend (Vite + PixiJS)
# ----------------------------------------------------------------------------
sector-frontend:
build:
context: ./sector-frontend
dockerfile: Dockerfile.dev
container_name: void_sector_frontend
restart: unless-stopped
volumes:
- ./sector-frontend:/app
- /app/node_modules
ports:
- "${PORT_FRONTEND}:5173"
environment:
- NODE_ENV=development
- CHOKIDAR_USEPOLLING=true
networks:
- void_sector_network
- npm_network
# ------------------------------------------------------------------------------
# Netzwerke
# ------------------------------------------------------------------------------
networks:
void_sector_network:
driver: bridge
npm_network:
external: true
name: nginx-proxy-manager_default