feat: initial commit web-cad-neu with docker-compose, frontend and backend

This commit is contained in:
2026-06-26 10:50:24 +02:00
commit 4ec76fe406
102 changed files with 25722 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
version: "3.8"
services:
frontend:
build: ./frontend
ports:
- "8080:80"
depends_on:
backend:
condition: service_healthy
restart: unless-stopped
backend:
build: ./backend
ports:
- "3001:3001"
volumes:
- backend-data:/app/data
environment:
- JWT_SECRET=${JWT_SECRET:-change-me-in-production}
- API_KEY_OPENROUTER=${API_KEY_OPENROUTER:-}
- DB_PATH=/app/data/cad.db
- PORT=3001
- NODE_ENV=production
healthcheck:
test: ["CMD", "wget", "--spider", "-q", "http://localhost:3001/api/health"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
restart: unless-stopped
volumes:
backend-data: