forked from cyberagiinc/DevDocs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (77 loc) · 1.99 KB
/
Copy pathdocker-compose.yml
File metadata and controls
81 lines (77 loc) · 1.99 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
services:
frontend:
build:
context: .
dockerfile: docker/dockerfiles/Dockerfile.frontend
args:
- NEXT_PUBLIC_BACKEND_URL=${NEXT_PUBLIC_BACKEND_URL} # Pass the variable as a build arg
container_name: devdocs-frontend
ports:
- "3001:3001"
environment:
# - NEXT_PUBLIC_BACKEND_URL=http://backend:24125
- MCP_HOST=mcp
depends_on:
- backend
networks:
- devdocs-network
restart: unless-stopped
backend:
build:
context: .
dockerfile: docker/dockerfiles/Dockerfile.backend
container_name: devdocs-backend
ports:
- "24125:24125"
volumes:
- ./storage:/app/storage
- ./logs:/app/logs
- ./crawl_results:/app/crawl_results
environment:
- MCP_HOST=mcp
- CRAWL4AI_URL=http://crawl4ai:11235
- CRAWL4AI_API_TOKEN=${CRAWL4AI_API_TOKEN:-devdocs-demo-key}
- DISCOVERY_POLLING_TIMEOUT_SECONDS=${DISCOVERY_POLLING_TIMEOUT_SECONDS:-300} # Add discovery timeout
depends_on:
- crawl4ai
- mcp
networks:
- devdocs-network
restart: unless-stopped
mcp:
build:
context: .
dockerfile: docker/dockerfiles/Dockerfile.mcp
container_name: devdocs-mcp
volumes:
- ./storage/markdown:/app/storage/markdown
- ./logs:/app/logs
networks:
- devdocs-network
stdin_open: true # Keep stdin open
tty: true # Allocate a pseudo-TTY
restart: unless-stopped
crawl4ai:
image: unclecode/crawl4ai:all
container_name: devdocs-crawl4ai
ports:
- "11235:11235"
environment:
- CRAWL4AI_API_TOKEN=${CRAWL4AI_API_TOKEN:-devdocs-demo-key}
- MAX_CONCURRENT_TASKS=5
- DISABLE_AUTH=false
volumes:
- /dev/shm:/dev/shm
- ./crawl_results:/app/crawl_results
networks:
- devdocs-network
restart: unless-stopped
deploy:
resources:
limits:
memory: 4G
reservations:
memory: 1G
networks:
devdocs-network:
driver: bridge