-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.dev.yml
More file actions
52 lines (49 loc) · 1.17 KB
/
docker-compose.dev.yml
File metadata and controls
52 lines (49 loc) · 1.17 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
version: '3.8'
# Development docker-compose with hot reload
services:
server:
build:
context: .
dockerfile: Dockerfile.server
target: deps
container_name: smartdoc-server-dev
command: npm run serve:server
ports:
- "3000:3000"
environment:
- NODE_ENV=development
- PORT=3000
- GROQ_API_KEY=${GROQ_API_KEY}
- PINECONE_API_KEY=${PINECONE_API_KEY}
- PINECONE_INDEX_NAME=${PINECONE_INDEX_NAME:-smartdoc-index}
- HUGGINGFACE_API_KEY=${HUGGINGFACE_API_KEY}
- DATA_DIR=/app/data
volumes:
# Mount source code for hot reload
- .:/app
- /app/node_modules
- ./data:/app/data
restart: unless-stopped
networks:
- smartdoc-network
frontend:
build:
context: .
dockerfile: Dockerfile.frontend
target: deps
container_name: smartdoc-frontend-dev
command: npm run serve:frontend
ports:
- "4200:4200"
depends_on:
- server
volumes:
# Mount source code for hot reload
- .:/app
- /app/node_modules
restart: unless-stopped
networks:
- smartdoc-network
networks:
smartdoc-network:
driver: bridge