-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
133 lines (129 loc) · 3.18 KB
/
docker-compose.yml
File metadata and controls
133 lines (129 loc) · 3.18 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
name: Pricing_Intelligence
services:
choco-api:
build:
context: .
dockerfile: csp/Dockerfile
ports:
- "8000:8000"
environment:
- PORT=8000
- LOG_LEVEL=INFO
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
analysis-api:
build:
context: ./analysis_api
dockerfile: Dockerfile
ports:
- "8002:3000"
environment:
- NODE_ENV=production
- PORT=3000
- CHOCO_API=http://choco-api:8000
- LOG_LEVEL=INFO
volumes:
- ./analysis_api/src:/app/src
- ./analysis_api/logs:/app/logs
- ./analysis_api/output:/app/output
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
depends_on:
- choco-api
restart: unless-stopped
a-mint-api:
build:
context: .
dockerfile: src/Dockerfile
ports:
- "8001:8000"
environment:
- PYTHONPATH=/app
- PORT=8000
- OPENAI_API_KEY=${AMINT_API_KEY}
- OPENAI_API_KEYS=${AMINT_API_KEYS}
- ANALYSIS_API=http://analysis-api:3000/api/v1
- LOG_LEVEL=INFO
volumes:
- ./src:/app/src
- ./logs:/app/logs
- ./output:/app/output
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
depends_on:
- analysis-api
mcp-server:
build:
context: ./mcp_server
dockerfile: Dockerfile
environment:
- AMINT_BASE_URL=http://a-mint-api:8000
- ANALYSIS_BASE_URL=http://analysis-api:3000
- CACHE_BACKEND=memory
- LOG_LEVEL=INFO
- HTTP_HOST=0.0.0.0
- HTTP_PORT=8085
- UVICORN_HOST=0.0.0.0
- UVICORN_PORT=8085
- MCP_TRANSPORT=sse
ports:
- "8085:8085"
healthcheck:
test: ["CMD", "python", "-c", "import socket; s=socket.create_connection(('127.0.0.1', 8085), 2); s.close()"]
interval: 30s
timeout: 5s
retries: 3
depends_on:
- a-mint-api
- analysis-api
restart: unless-stopped
harvey-api:
build:
context: .
args:
- HARVEY_STATIC_DIR=/app/static
dockerfile: harvey_api/Dockerfile
ports:
- "8086:8086"
environment:
- LOG_LEVEL=INFO
- OPENAI_API_KEY=${HARVEY_API_KEY}
- OPENAI_MODEL=gpt-5-nano
- AMINT_BASE_URL=http://a-mint-api:8000
- ANALYSIS_BASE_URL=http://analysis-api:3000
- CACHE_BACKEND=memory
- MCP_TRANSPORT=sse
- MCP_SERVER_URL=http://mcp-server:8085/sse
depends_on:
- a-mint-api
- analysis-api
- mcp-server
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8086/health"]
interval: 30s
timeout: 10s
retries: 3
restart: unless-stopped
mcp-frontend:
build:
context: ./frontend
dockerfile: Dockerfile
args:
- VITE_API_BASE_URL=http://localhost:8086
- VITE_SPHERE_BASE_URL=https://sphere.score.us.es
ports:
- "80:80"
depends_on:
- harvey-api
restart: unless-stopped