-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
147 lines (134 loc) · 3.7 KB
/
docker-compose.yml
File metadata and controls
147 lines (134 loc) · 3.7 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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
version: '3.8'
# Heta MVP — one-command startup
# Usage:
# 1. cp config.example.yaml config.yaml
# 2. Fill in your LLM / VLM / Embedding API keys in config.yaml
# 3. docker-compose up -d
services:
# ── Infrastructure ────────────────────────────────────────────────────────
postgres:
image: postgres:15-alpine
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- "5432:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
etcd:
image: quay.io/coreos/etcd:v3.5.5
restart: unless-stopped
environment:
ETCD_AUTO_COMPACTION_MODE: revision
ETCD_AUTO_COMPACTION_RETENTION: "1000"
ETCD_QUOTA_BACKEND_BYTES: "4294967296"
ETCD_SNAPSHOT_COUNT: "50000"
command: >
etcd
-advertise-client-urls=http://127.0.0.1:2379
-listen-client-urls=http://0.0.0.0:2379
--data-dir=/etcd
volumes:
- etcd_data:/etcd
minio:
image: minio/minio:RELEASE.2023-03-13T19-46-17Z
restart: unless-stopped
environment:
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
volumes:
- minio_data:/minio_data
command: minio server /minio_data --console-address ":9001"
ports:
- "9000:9000" # S3 API
- "9001:9001" # admin console
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
milvus:
image: milvusdb/milvus:v2.4.13
restart: unless-stopped
command: milvus run standalone
environment:
ETCD_ENDPOINTS: etcd:2379
MINIO_ADDRESS: minio:9000
volumes:
- milvus_data:/var/lib/milvus
ports:
- "19530:19530"
- "9091:9091"
depends_on:
- etcd
- minio
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9091/healthz"]
interval: 30s
timeout: 20s
retries: 5
start_period: 60s
neo4j:
image: neo4j:5.15
restart: unless-stopped
environment:
NEO4J_AUTH: neo4j/heta_password
volumes:
- neo4j_data:/data
ports:
- "7474:7474"
- "7687:7687"
healthcheck:
test: ["CMD", "cypher-shell", "-u", "neo4j", "-p", "heta_password", "RETURN 1"]
interval: 30s
timeout: 10s
retries: 5
# ── Application ───────────────────────────────────────────────────────────
backend:
build:
context: .
dockerfile: Dockerfile
restart: unless-stopped
volumes:
- ./config.yaml:/app/config.yaml:ro
- workspace_data:/app/workspace
ports:
- "8000:8000" # REST API
- "8011:8011" # HetaMem MCP server (streamable-http)
- "8012:8012" # HetaDB MCP server (streamable-http)
depends_on:
postgres:
condition: service_healthy
milvus:
condition: service_healthy
neo4j:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
frontend:
build:
context: ./heta-frontend
dockerfile: Dockerfile
restart: unless-stopped
ports:
- "80:80"
depends_on:
backend:
condition: service_healthy
volumes:
postgres_data:
etcd_data:
minio_data:
milvus_data:
neo4j_data:
workspace_data: