Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
72 lines (66 loc) · 1.52 KB
/
Copy pathdocker-compose.yml
File metadata and controls
72 lines (66 loc) · 1.52 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
version: '3.8'
services:
# NoSQL Document Database
mongodb:
image: mongo:6.0
container_name: traceroot-mongodb
restart: always
ports:
- "27017:27017"
volumes:
- mongodb_data:/data/db
# Cache Layer
redis:
image: redis:7-alpine
container_name: traceroot-redis
restart: always
ports:
- "6379:6379"
volumes:
- redis_data:/data
# ML Anomaly Detection Service (Decoupled Port 8001)
ml-service:
build:
context: ./ml-service
dockerfile: Dockerfile
container_name: traceroot-ml-service
restart: always
ports:
- "8001:8001"
# Core API Gateway (Decoupled Port 8000)
core-api:
build:
context: ./core-api
dockerfile: Dockerfile
container_name: traceroot-core-api
restart: always
ports:
- "8000:8000"
environment:
- DATABASE_URL=sqlite:////app/data/traceroot.db
- MONGO_URL=mongodb://mongodb:27017
- REDIS_URL=redis://redis:6379/0
- ML_SERVICE_URL=http://ml-service:8001
- JWT_SECRET=super-secret-cryptographic-trace-root-key-2026-hack-elite
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
volumes:
- sqlite_data:/app/data
depends_on:
- mongodb
- redis
- ml-service
# React Web Portal Frontend Service
frontend:
build:
context: ./web-app
dockerfile: Dockerfile
container_name: traceroot-frontend
restart: always
ports:
- "3000:80"
depends_on:
- core-api
volumes:
mongodb_data:
redis_data:
sqlite_data: