-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
77 lines (74 loc) · 2.42 KB
/
Copy pathdocker-compose.yml
File metadata and controls
77 lines (74 loc) · 2.42 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
# WebShop+ Docker Compose Configuration
#
# Usage:
# docker compose up -d # Start both agents
# docker compose up green # Start green agent only
# docker compose logs -f # Follow logs
# docker compose down # Stop all services
#
#
# Environment variables:
# - Copy sample.env to .env and configure LLM settings
# - Or set LLM_MODEL and LLM_API_KEY directly
services:
# Green Agent (Evaluator)
green:
build:
context: .
dockerfile: green_agent/Dockerfile
image: ghcr.io/mpnikhil/webshop-plus-green:latest
container_name: webshop-plus-green
command: ["--host", "0.0.0.0", "--port", "8000", "--advertise-host", "green", "--card-url", "http://localhost:8000"]
ports:
- "8000:8000"
environment:
- LLM_MODEL=${LLM_MODEL:-openai/Qwen/Qwen3-32B}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OPENAI_API_BASE=${OPENAI_API_BASE:-https://api.tokenfactory.nebius.com/v1/}
- LLM_TEMPERATURE=${LLM_TEMPERATURE:-0.2}
- LLM_MAX_TOKENS=${LLM_MAX_TOKENS:-8192}
- WEBSHOP_MODE=${WEBSHOP_MODE:-preview}
- WEBSHOP_DIR=/app/webshop
- LOG_LEVEL=${LOG_LEVEL:-INFO}
- PURPLE_AGENT_URL=http://purple:8001/a2a
depends_on:
purple:
condition: service_healthy
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
restart: unless-stopped
networks:
- webshop-network
# Purple Agent (Shopper)
purple:
build:
context: ./purple_agent
dockerfile: Dockerfile
image: ghcr.io/mpnikhil/webshop-plus-purple:latest
container_name: webshop-plus-purple
command: ["--host", "0.0.0.0", "--port", "8001", "--card-url", "http://purple:8001"]
ports:
- "8001:8001"
environment:
- LLM_MODEL=${LLM_MODEL:-openai/Qwen/Qwen3-32B}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- OPENAI_API_BASE=${OPENAI_API_BASE:-https://api.tokenfactory.nebius.com/v1/}
- LLM_TEMPERATURE=${LLM_TEMPERATURE:-0.2}
- LLM_MAX_TOKENS=${LLM_MAX_TOKENS:-8192}
- LOG_LEVEL=${LOG_LEVEL:-INFO}
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8001/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
restart: unless-stopped
networks:
- webshop-network
networks:
webshop-network:
driver: bridge