-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
182 lines (171 loc) · 4.08 KB
/
docker-compose.yml
File metadata and controls
182 lines (171 loc) · 4.08 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
version: "3.9"
services:
codegraph-api:
build:
context: .
dockerfile: Dockerfile
container_name: codegraph-api
ports:
- "3000:3000"
environment:
- DATABASE_URL=postgres://codegraph:codegraph@postgres:5432/codegraph
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=codegraph123
- QDRANT_URL=http://qdrant:6333
- REDIS_URL=redis://redis:6379
- ONA_HOST=ona
- ONA_PORT=50000
- RUST_LOG=info
depends_on:
postgres:
condition: service_healthy
neo4j:
condition: service_healthy
qdrant:
condition: service_healthy
redis:
condition: service_healthy
ona:
condition: service_started
networks:
- codegraph-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"\]
interval: 30s
timeout: 10s
retries: 3
codegraph-mcp:
build:
context: .
dockerfile: Dockerfile.mcp
container_name: codegraph-mcp
stdin_open: true
tty: true
environment:
- CODEGRAPH_API_URL=http://codegraph-api:3000
depends_on:
- codegraph-api
networks:
- codegraph-network
neo4j:
image: neo4j:5.26-community
container_name: codegraph-neo4j
ports:
- "7474:7474"
- "7687:7687"
environment:
- NEO4J_AUTH=neo4j/codegraph123
- NEO4J_PLUGINS=["apoc"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*
- NEO4J_dbms_memory_heap_initial__size=512m
- NEO4J_dbms_memory_heap_max__size=1G
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
networks:
- codegraph-network
healthcheck:
test: ["CMD", "cypher-shell", "-u", "neo4j", "-p", "codegraph123", "RETURN 1"]
interval: 30s
timeout: 10s
retries: 5
qdrant:
image: qdrant/qdrant:v1.12.6
container_name: codegraph-qdrant
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
networks:
- codegraph-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6333/health"\]
interval: 30s
timeout: 10s
retries: 3
postgres:
image: postgres:16-alpine
container_name: codegraph-postgres
ports:
- "5432:5432"
environment:
- POSTGRES_USER=codegraph
- POSTGRES_PASSWORD=codegraph
- POSTGRES_DB=codegraph
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- codegraph-network
healthcheck:
test: ["CMD-SHELL", "pg_isready -U codegraph"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: codegraph-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes
networks:
- codegraph-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
ona:
image: ubuntu:22.04
container_name: codegraph-ona
build:
context: ./docker/ona
dockerfile: Dockerfile
volumes:
- ona_data:/ona/data
networks:
- codegraph-network
stdin_open: true
tty: true
prometheus:
image: prom/prometheus:v2.54.1
container_name: codegraph-prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
networks:
- codegraph-network
grafana:
image: grafana/grafana:11.4.0
container_name: codegraph-grafana
ports:
- "3001:3000"
volumes:
- grafana_data:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
environment:
- GF_SECURITY_ADMIN_PASSWORD=codegraph
depends_on:
- prometheus
networks:
- codegraph-network
networks:
codegraph-network:
driver: bridge
volumes:
neo4j_data:
neo4j_logs:
qdrant_data:
postgres_data:
redis_data:
ona_data:
prometheus_data:
grafana_data: