forked from LeJih8-24/Visir
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
60 lines (55 loc) · 1.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
60 lines (55 loc) · 1.42 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
version: '3.8'
services:
db:
# On utilise une image pré-configurée avec pgvector pour le RAG
image: ankane/pgvector:latest
container_name: visir_db
restart: unless-stopped
environment:
POSTGRES_USER: visir_user
POSTGRES_PASSWORD: visir_password
POSTGRES_DB: visir_db
ports:
- "6767:6767"
volumes:
- visir_postgres_data:/var/lib/postgresql/data
networks:
- visir_network
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: visir_backend
restart: unless-stopped
ports:
- "8000:8000"
environment:
- DATABASE_URL=postgresql://visir_user:visir_password@db:5432/visir_db
- GEMINI_API_KEY=${GEMINI_API_KEY}
- VISIR_WEBHOOK_SECRET=${VISIR_WEBHOOK_SECRET}
depends_on:
- db
networks:
- visir_network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: visir_frontend
restart: unless-stopped
ports:
- "4200:4200"
volumes:
- ./frontend:/app # Synchronise ton code en temps réel
- /app/node_modules # Isole les node_modules du conteneur
depends_on:
- backend
networks:
- visir_network
volumes:
# Volume nommé indispensable pour ne pas perdre tes notes et tâches au redémarrage
visir_postgres_data:
ollama_data:
networks:
visir_network:
driver: bridge