-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (74 loc) · 1.99 KB
/
Copy pathdocker-compose.yml
File metadata and controls
91 lines (74 loc) · 1.99 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
services:
# 1. EL CEREBRO (Inferencia LLM - Optimizado para CPU)
ollama:
image: ollama/ollama:latest
container_name: nodo_llm
ports:
- "11434:11434"
volumes:
- ./ollama_data:/root/.ollama
# 1.1 INICIALIZADOR DEL LLM (Descarga automática de Qwen2.5)
ollama_init:
image: curlimages/curl:latest
container_name: ollama_init
depends_on:
- ollama
# Espera 10 segs a que Ollama inicie y descarga explícitamente qwen2.5:3b (1.9 GB)
command: >
sh -c "sleep 10 && curl -X POST http://nodo_llm:11434/api/pull -d '{\"name\": \"qwen2.5:3b\"}'"
# 2. LA MEMORIA VECTORIAL (Búsqueda Semántica)
qdrant:
image: qdrant/qdrant:latest
container_name: cont_qdrant
ports:
- "6333:6333"
volumes:
- ./qdrant_data:/qdrant/storage
# 3. LA MEMORIA HISTÓRICA (Chat y Metadatos)
mongodb:
image: mongo:latest
container_name: nodo_mongo
ports:
- "27017:27017"
volumes:
- ./mongo_data:/data/db
# 4. EL MAPA DE RELACIONES LÓGICAS (Graph Database)
neo4j:
image: neo4j:latest
container_name: nodo_neo4j
ports:
- "7474:7474" # Panel visual
- "7687:7687" # Conexión Bolt
environment:
- NEO4J_AUTH=neo4j/password_super_secreta
- NEO4J_PLUGINS=["apoc"]
volumes:
- ./neo4j_data:/data
# 5. EL SISTEMA NERVIOSO (Backend)
backend_api:
build: ./backend_python
container_name: nodo_api
ports:
- "8000:8000"
depends_on:
- qdrant
- ollama
- mongodb
- neo4j
environment:
- QDRANT_URL=http://cont_qdrant:6333
- OLLAMA_URL=http://nodo_llm:11434
- MONGO_URI=mongodb://nodo_mongo:27017
- NEO4J_URI=bolt://nodo_neo4j:7687
- NEO4J_USER=neo4j
- NEO4J_PASSWORD=password_super_secreta
volumes:
- ./backend_python:/app
# 6. LA INTERFAZ GRÁFICA
frontend_ui:
build: ./frontend_ui
container_name: nodo_ui
ports:
- "8501:8501"
depends_on:
- backend_api