Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
91 lines (86 loc) · 2.22 KB
/
Copy pathdocker-compose.yml
File metadata and controls
91 lines (86 loc) · 2.22 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
version: '3.8'
services:
# ============================================
# 🔄 Flowise - AI Workflow Orchestration
# ============================================
flowise:
image: flowiseai/flowise:latest
container_name: flowise-traffic
ports:
- "3000:3000"
volumes:
- ./flowise_data:/root/.flowise
environment:
- PORT=3000
- FLOWISE_USERNAME=admin
- FLOWISE_PASSWORD=traffic2024
- APIKEY_STORAGE_TYPE=json
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- chromadb
restart: unless-stopped
networks:
- traffic-net
# ============================================
# 🗄️ ChromaDB - Vector Database for RAG
# ============================================
chromadb:
image: chromadb/chroma:latest
container_name: chromadb-traffic
ports:
- "8000:8000"
volumes:
- ./chroma_data:/chroma/chroma
environment:
- IS_PERSISTENT=TRUE
- ANONYMIZED_TELEMETRY=FALSE
restart: unless-stopped
networks:
- traffic-net
# ============================================
# ⚙️ FastAPI Backend - Image Analysis Service
# ============================================
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: traffic-backend
ports:
- "8080:8080"
volumes:
- ./uploads:/app/uploads
- ./knowledge_base:/app/knowledge_base
environment:
- OLLAMA_BASE_URL=http://host.docker.internal:11434
- CHROMA_HOST=chromadb
- CHROMA_PORT=8000
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- chromadb
restart: unless-stopped
networks:
- traffic-net
# ============================================
# 🎨 Gradio Frontend (Optional)
# ============================================
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: traffic-frontend
ports:
- "7860:7860"
environment:
- BACKEND_URL=http://backend:8080
- FLOWISE_URL=http://flowise:3000
depends_on:
- backend
- flowise
restart: unless-stopped
networks:
- traffic-net
networks:
traffic-net:
driver: bridge