-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.7 KB
/
docker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.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
services:
# Base de données pour les logs et les vecteurs (RAG)
postgres:
image: pgvector/pgvector:pg15
container_name: agent_postgres
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: adminpassword
POSTGRES_DB: agent_db
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
# Cache et Queue
redis:
image: redis:alpine
container_name: agent_redis
ports:
- "6379:6379"
neo4j:
image: neo4j:5.15.0
container_name: agent_neo4j
ports:
- "7474:7474" # Interface Admin (Browser)
- "7687:7687" # Port Bolt (Pour l'API Python)
environment:
NEO4J_AUTH: neo4j/password1234 # User/Pass basique
# Plugins pour des algos avancés
NEO4J_PLUGINS: '["apoc", "graph-data-science"]'
volumes:
- neo4j_data:/data
# Notre API (Backend)
api:
build: ./backend
container_name: agent_api
command: uvicorn app.main:app --host 0.0.0.0 --port 8000 --reload
volumes:
- ./backend:/app
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql://admin:adminpassword@postgres:5432/agent_db
# Connexion Neo4j
- NEO4J_URI=bolt://neo4j:7687
- NEO4J_USERNAME=neo4j
- NEO4J_PASSWORD=password1234
# CRITIQUE : Il faut une clé Google pour construire le graphe
- LLM_PROVIDER=${LLM_PROVIDER}
- GROQ_API_KEY=${GROQ_API_KEY}
- GROQ_MODEL=${GROQ_MODEL}
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
- GOOGLE_MODEL=${GOOGLE_MODEL}
env_file:
- .env
depends_on:
- postgres
- redis
- neo4j
volumes:
postgres_data:
neo4j_data: