-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (57 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
62 lines (57 loc) · 1.26 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
version: '3.8'
services:
math-agent:
build: ./math-agent
ports:
- "8001:8000"
networks:
- ai-answerbot
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
weather-agent:
build: ./weather-agent
ports:
- "8002:8000"
networks:
- ai-answerbot
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
qna-agent:
build: ./qna-agent
ports:
- "8003:8000"
networks:
- ai-answerbot
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
router:
build: ./router
ports:
- "8000:8000"
depends_on:
- math-agent
- weather-agent
- qna-agent
networks:
- ai-answerbot
environment:
- MATH_AGENT_URL=http://math-agent:8000/solve
- WEATHER_AGENT_URL=http://weather-agent:8000/get
- QNA_AGENT_URL=http://qna-agent:8000/ask
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
networks:
ai-answerbot:
driver: bridge