-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
57 lines (53 loc) · 1.26 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
57 lines (53 loc) · 1.26 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
version: "3.9"
services:
# Redis for Caching Layer
redis:
image: "redis:alpine"
ports:
- "6379:6379"
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 3
# Python core inference service
core:
build:
context: .
dockerfile: ./python_core/Dockerfile
ports:
- "8000:8000"
environment:
- CASCADE_MID_API_KEY=${CASCADE_MID_API_KEY:-}
- CASCADE_PREMIUM_API_KEY=${CASCADE_PREMIUM_API_KEY:-}
- CASCADE_LOCAL_URL=http://host.docker.internal:11434
- REDIS_URL=redis://redis:6379/0
- PYTHONPATH=/app
volumes:
- ./data/logs:/app/data/logs
- ./config.yaml:/app/config.yaml:ro
- .:/app
depends_on:
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 10s
timeout: 5s
retries: 5
# TypeScript API gateway
gateway:
build:
context: ./typescript_api
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- CORE_SERVICE_URL=http://core:8000
- API_KEYS=${API_KEYS:-dev-key-123}
- GATEWAY_PORT=3000
depends_on:
core:
condition: service_healthy
volumes:
logs: