-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.59 KB
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.59 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
services:
# ── API Gateway + Dashboard ─────────────────────────────
gateway:
build: ./gateway
ports:
- "8080:8080"
environment:
- ROUTES_FILE=/config/routes.yaml
- DEPLOY_MODE=compose
volumes:
- ./config/routes.yaml:/config/routes.yaml:ro
depends_on:
sentiment:
condition: service_healthy
price-classifier:
condition: service_healthy
restart: unless-stopped
# ── Sentiment Analysis Model ────────────────────────────
sentiment:
build:
context: .
dockerfile: Dockerfile.model
args:
MODEL_NAME: sentiment
environment:
- MODEL_NAME=sentiment
- MODEL_VERSION=v1
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 10s
timeout: 5s
retries: 30
start_period: 60s
restart: unless-stopped
# ── Price Classifier Model ──────────────────────────────
price-classifier:
build:
context: .
dockerfile: Dockerfile.model
args:
MODEL_NAME: price_classifier
environment:
- MODEL_NAME=price_classifier
- MODEL_VERSION=v1
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health')"]
interval: 10s
timeout: 5s
retries: 10
start_period: 10s
restart: unless-stopped