-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
57 lines (54 loc) · 1.4 KB
/
docker-compose.yml
File metadata and controls
57 lines (54 loc) · 1.4 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
services:
control-plane:
image: agentfield/control-plane:latest
ports:
- "8080:8080"
environment:
- AGENTFIELD_HTTP_ADDR=0.0.0.0:8080
- AGENTFIELD_STORAGE_MODE=local
volumes:
- agentfield-data:/data
swe-agent:
build:
context: .
dockerfile: Dockerfile
env_file: .env
environment:
- AGENTFIELD_SERVER=http://control-plane:8080
- NODE_ID=swe-planner
- PORT=8003
- AGENT_CALLBACK_URL=http://swe-agent:8003
ports:
- "8003:8003"
volumes:
- workspaces:/workspaces
depends_on:
- control-plane
deploy:
replicas: 1 # Scale with: docker compose up --scale swe-agent=3
swe-fast:
build:
context: .
dockerfile: Dockerfile
command: ["python", "-m", "swe_af.fast"]
environment:
- AGENTFIELD_SERVER=http://control-plane:8080
- NODE_ID=swe-fast
- PORT=8004
- AGENT_CALLBACK_URL=http://swe-fast:8004
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN}
- GH_TOKEN=${GH_TOKEN}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY:-}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- GOOGLE_API_KEY=${GOOGLE_API_KEY:-}
- OPENCODE_MODEL=${OPENCODE_MODEL:-}
ports:
- "8004:8004"
volumes:
- workspaces:/workspaces
depends_on:
- control-plane
volumes:
agentfield-data:
workspaces: