Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
143 lines (133 loc) · 3.34 KB
/
Copy pathdocker-compose.yml
File metadata and controls
143 lines (133 loc) · 3.34 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
version: "3.9"
services:
# ── Infrastructure ──────────────────────────────────────
neo4j:
image: neo4j:5-community
ports:
- "17474:7474" # Browser
- "17687:7687" # Bolt
environment:
NEO4J_AUTH: neo4j/graphiti_dev
NEO4J_PLUGINS: '["apoc"]'
NEO4J_dbms_security_procedures_unrestricted: "apoc.*"
volumes:
- neo4j_data:/data
healthcheck:
test: ["CMD-SHELL", "cypher-shell -u neo4j -p graphiti_dev 'RETURN 1'"]
interval: 10s
timeout: 5s
retries: 10
postgres:
image: postgres:16-alpine
ports:
- "15432:5432"
environment:
POSTGRES_DB: kgplatform
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 5s
timeout: 3s
retries: 5
redis:
image: redis:7.4
ports:
- "16379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 5
minio:
image: minio/minio:latest
ports:
- "19000:9000" # API
- "19001:9001" # Console
environment:
MINIO_ROOT_USER: minioadmin
MINIO_ROOT_PASSWORD: minioadmin
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
healthcheck:
test: ["CMD", "mc", "ready", "local"]
interval: 5s
timeout: 3s
retries: 5
# MinIO bucket auto-creation
minio-init:
image: minio/mc:latest
depends_on:
minio:
condition: service_healthy
entrypoint: >
/bin/sh -c "
mc alias set local http://minio:9000 minioadmin minioadmin;
mc mb local/documents --ignore-existing;
exit 0;
"
# ── Application Services ────────────────────────────────
graphiti-server:
build:
context: ./services/graphiti-server
dockerfile: Dockerfile
ports:
- "18100:8100"
env_file: .env
depends_on:
neo4j:
condition: service_healthy
redis:
condition: service_healthy
minio-init:
condition: service_completed_successfully
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8100/health"]
interval: 10s
timeout: 5s
retries: 5
graphiti-worker:
build:
context: ./services/graphiti-server
dockerfile: Dockerfile
command: ["python", "-m", "src.worker"]
env_file: .env
depends_on:
graphiti-server:
condition: service_healthy
restart: unless-stopped
backend:
build:
context: ./services/backend
dockerfile: Dockerfile
ports:
- "18080:8080"
env_file: .env
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
graphiti-server:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 10s
timeout: 5s
retries: 5
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "15173:5173"
depends_on:
backend:
condition: service_healthy
volumes:
neo4j_data:
postgres_data:
minio_data: