2026-05-24 21:54:58 +00:00
|
|
|
version: '3.8'
|
|
|
|
|
|
|
|
|
|
services:
|
2026-06-21 20:34:00 +00:00
|
|
|
cad-backend:
|
|
|
|
|
build:
|
|
|
|
|
context: ./backend
|
|
|
|
|
container_name: cad-backend
|
2026-05-24 21:54:58 +00:00
|
|
|
ports:
|
2026-06-21 20:34:00 +00:00
|
|
|
- "3001:3001"
|
|
|
|
|
volumes:
|
|
|
|
|
- cad-data:/data
|
2026-05-24 21:54:58 +00:00
|
|
|
environment:
|
|
|
|
|
- NODE_ENV=production
|
2026-06-21 20:34:00 +00:00
|
|
|
- PORT=3001
|
|
|
|
|
- JWT_SECRET=${JWT_SECRET}
|
|
|
|
|
- AI_API_URL=${AI_API_URL}
|
|
|
|
|
- AI_API_KEY=${AI_API_KEY}
|
|
|
|
|
- AI_MODEL=${AI_MODEL}
|
|
|
|
|
- DATABASE_PATH=/data/db/cad.sqlite
|
|
|
|
|
- YJS_PERSISTENCE_PATH=/data/yjs
|
|
|
|
|
healthcheck:
|
|
|
|
|
test: ["CMD", "curl", "-f", "http://localhost:3001/health"]
|
|
|
|
|
interval: 30s
|
|
|
|
|
timeout: 10s
|
|
|
|
|
retries: 3
|
2026-05-24 21:54:58 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
|
|
2026-06-21 20:34:00 +00:00
|
|
|
cad-frontend:
|
|
|
|
|
build:
|
|
|
|
|
context: ./frontend
|
|
|
|
|
container_name: cad-frontend
|
2026-05-24 21:54:58 +00:00
|
|
|
ports:
|
2026-06-21 20:34:00 +00:00
|
|
|
- "8080:8080"
|
2026-05-24 21:54:58 +00:00
|
|
|
depends_on:
|
2026-06-21 20:34:00 +00:00
|
|
|
- cad-backend
|
|
|
|
|
environment:
|
|
|
|
|
- API_URL=https://cad.media-on.de/api
|
|
|
|
|
- WS_URL=wss://cad.media-on.de/ws
|
2026-05-24 21:54:58 +00:00
|
|
|
|
|
|
|
|
volumes:
|
2026-06-21 20:34:00 +00:00
|
|
|
cad-data:
|