-
Notifications
You must be signed in to change notification settings - Fork 154
Expand file tree
/
Copy pathdocker-compose.local.yml
More file actions
53 lines (50 loc) · 1.72 KB
/
Copy pathdocker-compose.local.yml
File metadata and controls
53 lines (50 loc) · 1.72 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
# 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:
# Ephemeral Postgres for build-time integration checks (see docker-compose.yml
# for the full rationale). Repo-agnostic, throwaway, one shared DB.
build-db:
image: postgres:16
environment:
- POSTGRES_USER=${BUILD_DB_USER:-builder}
- POSTGRES_PASSWORD=${BUILD_DB_PASSWORD:-builder}
- POSTGRES_DB=${BUILD_DB_NAME:-buildtest}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${BUILD_DB_USER:-builder} -d ${BUILD_DB_NAME:-buildtest}"]
interval: 5s
timeout: 3s
retries: 30
swe-agent:
build:
context: .
dockerfile: Dockerfile
env_file: .env
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
- SWE_DEFAULT_RUNTIME=${SWE_DEFAULT_RUNTIME:-claude_code}
- SWE_DEFAULT_MODEL=${SWE_DEFAULT_MODEL:-}
- SWE_CODEX_AUTH_MODE=${SWE_CODEX_AUTH_MODE:-auto}
- OPENAI_API_KEY=${OPENAI_API_KEY:-}
- DATABASE_URL_TEST=${DATABASE_URL_TEST:-postgres://builder:builder@build-db:5432/buildtest}
ports:
- "8003:8003"
volumes:
- workspaces:/workspaces
- ${HOME}/.codex:/root/.codex
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
build-db:
condition: service_healthy
volumes:
workspaces: