-
Notifications
You must be signed in to change notification settings - Fork 115
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
32 lines (30 loc) · 939 Bytes
/
docker-compose.local.yml
File metadata and controls
32 lines (30 loc) · 939 Bytes
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
# Use this to run the SWE agent against an already-running control plane
# on the host machine (no Docker control plane needed).
#
# docker compose -f docker-compose.local.yml up -d
#
# Prerequisites:
# - AgentField control plane running on host at localhost:8080
# - .env file with ANTHROPIC_API_KEY (and optionally GH_TOKEN)
services:
swe-agent:
build:
context: .
dockerfile: Dockerfile
environment:
- AGENTFIELD_SERVER=http://host.docker.internal:8080
- NODE_ID=swe-planner
- PORT=8003
# Callback URL for control plane to reach this agent
- AGENT_CALLBACK_URL=http://localhost:8003
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- CLAUDE_CODE_OAUTH_TOKEN=${CLAUDE_CODE_OAUTH_TOKEN}
- GH_TOKEN=${GH_TOKEN}
ports:
- "8003:8003"
volumes:
- workspaces:/workspaces
extra_hosts:
- "host.docker.internal:host-gateway"
volumes:
workspaces: