- Added api-security-hardening (helmet, rate limits) - Added nodejs-backend-patterns (error handling) - Added observability-monitoring (pino logging) - Added websocket-engineer (socket.io real-time updates) - Added docker (Multi-stage build, compose) - Added vitest (testing configuration and store tests) - Added data-visualizer (MetricsBar and HostChart) - Added infrastructure-monitoring/proxmox-admin/network-engineer types - Fixed UI accessibility and styling - Cleaned up node_modules tracking
49 lines
1.1 KiB
YAML
49 lines
1.1 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
# Frontend dev server (Vite HMR)
|
|
frontend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: builder
|
|
ports:
|
|
- "3000:3000"
|
|
volumes:
|
|
- ./src:/app/src
|
|
- ./index.html:/app/index.html
|
|
- /app/node_modules
|
|
command: npm run dev -- --host 0.0.0.0
|
|
environment:
|
|
- VITE_API_URL=http://backend:3001
|
|
depends_on:
|
|
backend:
|
|
condition: service_healthy
|
|
|
|
# Backend API + WebSocket server
|
|
backend:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile
|
|
target: builder
|
|
ports:
|
|
- "3001:3001"
|
|
volumes:
|
|
- ./server:/app/server
|
|
- /app/node_modules
|
|
command: npx tsx --watch server/index.ts
|
|
environment:
|
|
- NODE_ENV=development
|
|
- CORS_ORIGIN=http://localhost:3000
|
|
- LOG_LEVEL=debug
|
|
healthcheck:
|
|
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3001/api/health"]
|
|
interval: 10s
|
|
timeout: 5s
|
|
retries: 5
|
|
start_period: 10s
|
|
|
|
networks:
|
|
default:
|
|
name: homelab-topology
|