feat: update root docker-compose.yml with cad-backend and cad-frontend services
This commit is contained in:
+8
-31
@@ -1,41 +1,18 @@
|
|||||||
version: '3.8'
|
version: '3.8'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
cad-backend:
|
|
||||||
build:
|
|
||||||
context: ./backend
|
|
||||||
container_name: cad-backend
|
|
||||||
ports:
|
|
||||||
- "3001:3001"
|
|
||||||
volumes:
|
|
||||||
- cad-data:/data
|
|
||||||
environment:
|
|
||||||
- NODE_ENV=production
|
|
||||||
- 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
|
|
||||||
|
|
||||||
cad-frontend:
|
cad-frontend:
|
||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
container_name: cad-frontend
|
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8080:80"
|
||||||
depends_on:
|
depends_on:
|
||||||
- cad-backend
|
- cad-backend
|
||||||
environment:
|
|
||||||
- API_URL=https://cad.media-on.de/api
|
|
||||||
- WS_URL=wss://cad.media-on.de/ws
|
|
||||||
|
|
||||||
volumes:
|
cad-backend:
|
||||||
cad-data:
|
build:
|
||||||
|
context: ./backend
|
||||||
|
ports:
|
||||||
|
- "3001:3001"
|
||||||
|
environment:
|
||||||
|
- NODE_ENV=development
|
||||||
Reference in New Issue
Block a user