T01: update docker-compose.yml
This commit is contained in:
+29
-12
@@ -1,24 +1,41 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
backend:
|
cad-backend:
|
||||||
build: ./backend
|
build:
|
||||||
|
context: ./backend
|
||||||
|
container_name: cad-backend
|
||||||
ports:
|
ports:
|
||||||
- "5000:5000"
|
- "3001:3001"
|
||||||
|
volumes:
|
||||||
|
- cad-data:/data
|
||||||
environment:
|
environment:
|
||||||
- NODE_ENV=production
|
- NODE_ENV=production
|
||||||
- JWT_SECRET=your-secret-key-change-me
|
- PORT=3001
|
||||||
volumes:
|
- JWT_SECRET=${JWT_SECRET}
|
||||||
- sqlite_data:/app/data
|
- 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
|
restart: unless-stopped
|
||||||
|
|
||||||
frontend:
|
cad-frontend:
|
||||||
build: ./frontend
|
build:
|
||||||
|
context: ./frontend
|
||||||
|
container_name: cad-frontend
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "8080:8080"
|
||||||
depends_on:
|
depends_on:
|
||||||
- backend
|
- cad-backend
|
||||||
restart: unless-stopped
|
environment:
|
||||||
|
- API_URL=https://cad.media-on.de/api
|
||||||
|
- WS_URL=wss://cad.media-on.de/ws
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
sqlite_data:
|
cad-data:
|
||||||
Reference in New Issue
Block a user