T01: update docker-compose.yml

This commit is contained in:
2026-06-21 20:34:00 +00:00
parent f1b3d2e136
commit 249236bb7a
+29 -12
View File
@@ -1,24 +1,41 @@
version: '3.8'
services:
backend:
build: ./backend
cad-backend:
build:
context: ./backend
container_name: cad-backend
ports:
- "5000:5000"
- "3001:3001"
volumes:
- cad-data:/data
environment:
- NODE_ENV=production
- JWT_SECRET=your-secret-key-change-me
volumes:
- sqlite_data:/app/data
- 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
restart: unless-stopped
frontend:
build: ./frontend
cad-frontend:
build:
context: ./frontend
container_name: cad-frontend
ports:
- "80:80"
- "8080:8080"
depends_on:
- backend
restart: unless-stopped
- cad-backend
environment:
- API_URL=https://cad.media-on.de/api
- WS_URL=wss://cad.media-on.de/ws
volumes:
sqlite_data:
cad-data: