-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (99 loc) · 2.67 KB
/
docker-compose.yml
File metadata and controls
105 lines (99 loc) · 2.67 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
version: "3.8"
services:
# Backend API — .NET runtime
api:
build:
context: .
dockerfile: Dockerfile
container_name: cognitive-mesh-api
ports:
- "8080:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:8080
- Redis__Hostname=redis
- Qdrant__Endpoint=http://qdrant:6333
depends_on:
redis:
condition: service_healthy
qdrant:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:8080/healthz || exit 1"]
interval: 15s
timeout: 5s
retries: 5
start_period: 30s
restart: unless-stopped
# Frontend — Next.js application
frontend:
build:
context: src/UILayer/web
dockerfile: Dockerfile
args:
NEXT_PUBLIC_API_BASE_URL: http://api:8080
container_name: cognitive-mesh-frontend
ports:
- "3000:3000"
environment:
- NEXT_PUBLIC_API_BASE_URL=http://api:8080
depends_on:
api:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/api/health || exit 1"]
interval: 15s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
# Redis - used by HybridMemoryStore for caching
redis:
image: redis:8-alpine
container_name: cognitive-mesh-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
# Qdrant - vector database for embeddings and semantic search
qdrant:
image: qdrant/qdrant:latest
container_name: cognitive-mesh-qdrant
ports:
- "6333:6333" # REST API
- "6334:6334" # gRPC
volumes:
- qdrant-data:/qdrant/storage
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:6333/healthz || exit 1"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
# Azurite - Azure Storage emulator (Blob, Queue, Table)
azurite:
image: mcr.microsoft.com/azure-storage/azurite:latest
container_name: cognitive-mesh-azurite
ports:
- "10000:10000" # Blob
- "10001:10001" # Queue
- "10002:10002" # Table
volumes:
- azurite-data:/data
command: "azurite --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0 -l /data"
healthcheck:
test: ["CMD-SHELL", "nc -z localhost 10000 || exit 1"]
interval: 10s
timeout: 5s
retries: 5
restart: unless-stopped
volumes:
redis-data:
qdrant-data:
azurite-data: