forked from Pinont/UIA-LABLAB
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
84 lines (78 loc) · 2.21 KB
/
Copy pathdocker-compose.dev.yml
File metadata and controls
84 lines (78 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3.8'
services:
# Backend Service (Development)
backend:
build:
context: .
dockerfile: apps/backend/Dockerfile.dev
container_name: bobinsight-backend-dev
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- PORT=3000
- HOST=0.0.0.0
- FRONTEND_URL=http://localhost:5173
- WATSONX_BASE_URL=${WATSONX_BASE_URL}
- IBM_CLOUD_API_KEY=${IBM_CLOUD_API_KEY}
- WATSONX_PROJECT_ID=${WATSONX_PROJECT_ID}
- CACHE_TTL=${CACHE_TTL:-3600}
- TEMP_DIR=/tmp/bobinsight
- RATE_LIMIT_MAX=${RATE_LIMIT_MAX:-10}
- RATE_LIMIT_WINDOW=${RATE_LIMIT_WINDOW:-60000}
volumes:
- ./apps/backend/src:/app/apps/backend/src
- ./packages/shared-types/src:/app/packages/shared-types/src
- backend-temp:/tmp/bobinsight
- backend-node-modules:/app/node_modules
- backend-app-node-modules:/app/apps/backend/node_modules
networks:
- bobinsight-network
restart: unless-stopped
command: npm run dev --workspace=apps/backend
# Frontend Service (Development)
frontend:
build:
context: .
dockerfile: apps/frontend/Dockerfile.dev
container_name: bobinsight-frontend-dev
ports:
- "5173:5173"
environment:
- VITE_API_URL=http://localhost:3000
volumes:
- ./apps/frontend/src:/app/apps/frontend/src
- ./apps/frontend/index.html:/app/apps/frontend/index.html
- ./packages/shared-types/src:/app/packages/shared-types/src
- frontend-node-modules:/app/node_modules
- frontend-app-node-modules:/app/apps/frontend/node_modules
depends_on:
- backend
networks:
- bobinsight-network
restart: unless-stopped
command: npm run dev --workspace=apps/frontend
# Redis Cache (Optional)
redis:
image: redis:7-alpine
container_name: bobinsight-redis-dev
ports:
- "6379:6379"
networks:
- bobinsight-network
restart: unless-stopped
networks:
bobinsight-network:
driver: bridge
volumes:
backend-temp:
driver: local
backend-node-modules:
driver: local
backend-app-node-modules:
driver: local
frontend-node-modules:
driver: local
frontend-app-node-modules:
driver: local
# Made with Bob