Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
120 lines (114 loc) · 3.12 KB
/
Copy pathdocker-compose.yml
File metadata and controls
120 lines (114 loc) · 3.12 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
version: '3.8'
services:
# Qdrant Vector Database
qdrant:
image: qdrant/qdrant:v1.7.4
container_name: doc_pipeline_qdrant
ports:
- "6333:6333"
- "6334:6334" # gRPC port
volumes:
- qdrant_data:/qdrant/storage
- ./docker/qdrant/config:/qdrant/config
environment:
- QDRANT__SERVICE__HTTP_PORT=6333
- QDRANT__SERVICE__GRPC_PORT=6334
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:6333/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- doc_pipeline_network
# Neo4j Graph Database
neo4j:
image: neo4j:5.15-community
container_name: doc_pipeline_neo4j
ports:
- "7474:7474" # HTTP
- "7687:7687" # Bolt
volumes:
- neo4j_data:/data
- neo4j_logs:/logs
- neo4j_import:/var/lib/neo4j/import
- neo4j_plugins:/plugins
- ./docker/neo4j/init:/docker-entrypoint-initdb.d
environment:
- NEO4J_AUTH=neo4j/docpipeline123
- NEO4J_PLUGINS=["apoc", "graph-data-science"]
- NEO4J_dbms_security_procedures_unrestricted=apoc.*,gds.*
- NEO4J_dbms_security_procedures_allowlist=apoc.*,gds.*
- NEO4J_apoc_export_file_enabled=true
- NEO4J_apoc_import_file_enabled=true
- NEO4J_apoc_import_file_use__neo4j__config=true
- NEO4J_dbms_shell_enabled=true
- NEO4J_dbms_memory_heap_initial__size=512m
- NEO4J_dbms_memory_heap_max__size=2g
- NEO4J_dbms_memory_pagecache_size=1g
healthcheck:
test: ["CMD", "wget", "http://localhost:7474"]
interval: 1m
timeout: 10s
retries: 2
start_period: 20s
networks:
- doc_pipeline_network
# Optional: Redis for caching
redis:
image: redis:7-alpine
container_name: doc_pipeline_redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
command: redis-server --appendonly yes --requirepass docpipeline123
healthcheck:
test: ["CMD", "redis-cli", "-a", "docpipeline123", "ping"]
interval: 30s
timeout: 10s
retries: 3
networks:
- doc_pipeline_network
profiles:
- caching
# Optional: MinIO for document storage
minio:
image: minio/minio:latest
container_name: doc_pipeline_minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio_data:/data
environment:
- MINIO_ROOT_USER=docpipeline
- MINIO_ROOT_PASSWORD=docpipeline123
command: server /data --console-address ":9001"
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 30s
timeout: 20s
retries: 3
networks:
- doc_pipeline_network
profiles:
- storage
volumes:
qdrant_data:
driver: local
neo4j_data:
driver: local
neo4j_logs:
driver: local
neo4j_import:
driver: local
neo4j_plugins:
driver: local
redis_data:
driver: local
minio_data:
driver: local
networks:
doc_pipeline_network:
driver: bridge