Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
124 lines (117 loc) · 3.03 KB
/
Copy pathdocker-compose.yml
File metadata and controls
124 lines (117 loc) · 3.03 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
version: '3.8'
services:
db:
image: postgres:16-alpine
container_name: sentinel-postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgrespassword
POSTGRES_DB: sentinel
ports:
- "5432:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
image: redis:7-alpine
container_name: sentinel-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
qdrant:
image: qdrant/qdrant:latest
container_name: sentinel-qdrant
restart: unless-stopped
ports:
- "6333:6333"
- "6334:6334"
volumes:
- qdrant_data:/qdrant/storage
healthcheck:
test: ["CMD-SHELL", "bash -c '</dev/tcp/127.0.0.1/6333' || exit 1"]
interval: 10s
timeout: 5s
retries: 5
ollama:
image: ollama/ollama:latest
container_name: sentinel-ollama
restart: unless-stopped
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
minio:
image: minio/minio:latest
container_name: sentinel-minio
restart: unless-stopped
ports:
- "9000:9000"
- "9001:9001"
environment:
MINIO_ROOT_USER: miniouser
MINIO_ROOT_PASSWORD: miniopassword
command: server /data --console-address ":9001"
volumes:
- minio_data:/data
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:9000/minio/health/live || exit 1"]
interval: 10s
timeout: 5s
retries: 5
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: sentinel-backend
restart: unless-stopped
ports:
- "8000:8000"
environment:
- ENV=development
- APP_ENV=development
- DEBUG=true
- PROJECT_NAME=Sentinel AI
- DB__URL=postgresql+asyncpg://postgres:postgrespassword@db:5432/sentinel
- CACHE__URL=redis://redis:6379/0
- VECTOR__URL=http://qdrant:6333
- LLM__API_BASE=http://ollama:11434
- STORAGE__ENDPOINT=minio:9000
- TELEMETRY__ENABLED=false
- SECURITY__SECRET_KEY=dev_secret_key_for_sentinel_ai_local_run
- SENTINEL_BOOTSTRAP_ADMIN_EMAIL=admin@sentinel.ai
- SENTINEL_BOOTSTRAP_ADMIN_PASSWORD=adminpassword123
- ANOMALY__MODEL_PATH=app/ml/artifacts/anomaly_model.joblib
volumes:
- ./backend/app/ml/artifacts:/app/app/ml/artifacts
depends_on:
db:
condition: service_healthy
redis:
condition: service_healthy
qdrant:
condition: service_healthy
minio:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/v1/health/live"]
interval: 15s
timeout: 5s
retries: 3
volumes:
postgres_data:
redis_data:
qdrant_data:
ollama_data:
minio_data: