-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (94 loc) · 2.38 KB
/
docker-compose.yml
File metadata and controls
99 lines (94 loc) · 2.38 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
services:
# PostgreSQL Database
postgres:
image: postgres:16-alpine
container_name: hetu-postgres
volumes:
- ./postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=hetu_agent
- POSTGRES_USER=hetu_user
- POSTGRES_PASSWORD=hetu_password
healthcheck:
test: ["CMD-SHELL", "pg_isready -U hetu_user -d hetu_agent"]
interval: 10s
timeout: 5s
retries: 5
networks:
- hetu-network
restart: unless-stopped
# Qdrant Vector Database
qdrant:
image: qdrant/qdrant:latest
container_name: qdrant
ports:
- "6333:6333"
- "6334:6334"
volumes:
- ./qdrant_storage:/qdrant/storage
environment:
- QDRANT__SERVICE__GRPC_PORT=6334
# Note: Qdrant image doesn't include curl, so we use a simple process check
# Health check is disabled, relying on service availability
networks:
- hetu-network
# FastAPI Application
api:
build:
context: ./agent_service
dockerfile: Dockerfile
container_name: hetu-agent-api
command: >
/bin/sh -c "poetry run alembic upgrade head &&
uvicorn src.main:app --host 0.0.0.0 --port 8000 --reload"
ports:
- "6000:8000"
volumes:
# Mount source code for development
- ./agent_service/src:/app/src:ro
- ./agent_service/alembic:/app/alembic:ro
- ./scripts:/app/scripts:ro
- ./.env:/app/.env:ro
environment:
- QDRANT_HOST=qdrant
- QDRANT_PORT=6333
- MCP_URL=http://mcp:6001
- POSTGRES_HOST=postgres
- POSTGRES_PORT=5432
- POSTGRES_DB=hetu_agent
- POSTGRES_USER=hetu_user
- POSTGRES_PASSWORD=hetu_password
depends_on:
postgres:
condition: service_healthy
qdrant:
condition: service_started
mcp:
condition: service_started
networks:
- hetu-network
restart: unless-stopped
# MCP Server
mcp:
build:
context: ./mcp
dockerfile: Dockerfile
container_name: hetu-mcp-server
ports:
- "6001:6001"
volumes:
# Mount source code for development
- ./mcp/src:/app/src:ro
- ./.env:/app/.env:ro
environment:
- QDRANT_HOST=qdrant
- QDRANT_PORT=6333
depends_on:
qdrant:
condition: service_started
networks:
- hetu-network
restart: unless-stopped
networks:
hetu-network:
driver: bridge