2026-06-26 10:50:24 +02:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
frontend:
|
|
|
|
|
build: ./frontend
|
|
|
|
|
ports:
|
2026-06-27 14:12:37 +02:00
|
|
|
- "8082:80"
|
2026-06-26 10:50:24 +02:00
|
|
|
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:
|