-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (52 loc) · 2.07 KB
/
Copy pathMakefile
File metadata and controls
66 lines (52 loc) · 2.07 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
# ═══════════════════════════════════════════════════════════════
# Makefile — Customer Support Multi-Agent System
# Usage: make <target>
# ═══════════════════════════════════════════════════════════════
.PHONY: help up down build logs restart ui-dev clean check-env
## Show this help
help:
@grep -E '^## .+' Makefile | sed 's/## / /'
## Copy .env.example → .env (edit before running)
setup:
@cp -n .env.example .env && echo "✓ Created .env — add your ANTHROPIC_API_KEY" || echo "! .env already exists"
## Build all containers
build:
docker compose build
## Start the full stack (build if needed)
up: check-env
docker compose up --build -d
@echo ""
@echo " ✓ UI: http://localhost:3000"
@echo " ✓ Control plane: http://localhost:8080"
@echo ""
@echo " Watch logs: make logs"
## Start in foreground (shows logs inline)
up-fg: check-env
docker compose up --build
## Stop all containers
down:
docker compose down
## Tail logs from all services
logs:
docker compose logs -f
## Tail logs for a specific agent (e.g. make logs-agent SVC=orchestrator)
logs-agent:
docker compose logs -f $(SVC)
## Restart a single service (e.g. make restart SVC=sentiment-agent)
restart:
docker compose restart $(SVC)
## Rebuild and restart a single service
rebuild:
docker compose up -d --build $(SVC)
## Run the React UI locally in dev mode (hot reload)
## Requires Node.js. Proxies /api to localhost:8080 (run af server separately)
ui-dev:
cd ui && npm install && npm run dev
## Remove containers, images, volumes
clean:
docker compose down --rmi local -v --remove-orphans
## Check .env exists and has the API key
check-env:
@test -f .env || (echo "ERROR: .env not found. Run: make setup" && exit 1)
@grep -q "OLLAMA_API_BASE=" .env || (echo "ERROR: Set OLLAMA_API_BASE in .env" && exit 1)
@echo "✓ .env looks good"