-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
99 lines (93 loc) · 2.62 KB
/
Copy pathdocker-compose.yml
File metadata and controls
99 lines (93 loc) · 2.62 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
# Kortex Development Environment
# Docker Compose v5 (no version field needed)
name: kortex-dev
services:
# PostgreSQL Database
postgres:
image: postgres:16-alpine
container_name: kortex-postgres
restart: unless-stopped
environment:
POSTGRES_USER: kortex
POSTGRES_PASSWORD: kortex_dev_password
POSTGRES_DB: kortex_dev
ports:
# Host-side 5433, not 5432: this machine already has a native Postgres
# bound to 127.0.0.1:5432 from outside this project, which would
# otherwise shadow the container from within this WSL distro.
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U kortex -d kortex_dev"]
interval: 10s
timeout: 5s
retries: 5
# Qdrant Vector Database (for AI embeddings)
qdrant:
image: qdrant/qdrant:latest
container_name: kortex-qdrant
restart: unless-stopped
ports:
- "6333:6333" # REST API
- "6334:6334" # gRPC
volumes:
- qdrant_data:/qdrant/storage
environment:
QDRANT__SERVICE__GRPC_PORT: 6334
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:6333/readyz"]
interval: 10s
timeout: 5s
retries: 5
# Redis (for caching and session management)
redis:
image: redis:7-alpine
container_name: kortex-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
# Inngest Dev Server (Event Bus for AI Workflows)
# Note: Inngest will auto-discover functions from FastAPI at /api/inngest
inngest:
image: inngest/inngest:latest
container_name: kortex-inngest
restart: unless-stopped
ports:
- "8288:8288"
command: ["inngest", "dev", "--sdk-url", "http://host.docker.internal:8000/api/inngest", "--no-discovery"]
environment:
- INNGEST_EVENT_KEY=${INNGEST_EVENT_KEY:-}
- INNGEST_SIGNING_KEY=${INNGEST_SIGNING_KEY:-}
- INNGEST_LOG_LEVEL=debug
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:8288/api/health"]
interval: 10s
timeout: 5s
retries: 5
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
postgres_data:
driver: local
qdrant_data:
driver: local
redis_data:
driver: local