-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (37 loc) · 1.26 KB
/
docker-compose.yml
File metadata and controls
39 lines (37 loc) · 1.26 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
# AgentBrowser local dev stack.
#
# docker compose up - launches the HTTP server on :3100
# docker compose up -d - background mode
# docker compose logs -f - tail logs
#
# To use the operator UI: open ui/operator/index.html in a browser, point it
# at http://localhost:3100, and click Connect → New session.
services:
agentbrowser:
build:
context: .
dockerfile: Dockerfile
image: agentbrowser:latest
container_name: agentbrowser
restart: unless-stopped
ports:
- "3100:3100"
environment:
ANTHROPIC_API_KEY: ${ANTHROPIC_API_KEY:-}
AGENTBROWSER_HEADLESS: "true"
AGENTBROWSER_STEALTH: "true"
AGENTBROWSER_API_KEYS: ${AGENTBROWSER_API_KEYS:-}
AGENTBROWSER_LOG_LEVEL: ${AGENTBROWSER_LOG_LEVEL:-info}
volumes:
# Persist site memory + traces across container restarts
- agentbrowser_data:/home/agentbrowser/.agentbrowser
# Chromium needs more shared memory than the Docker default
shm_size: "1gb"
healthcheck:
test: ["CMD-SHELL", "node -e \"fetch('http://127.0.0.1:3100/health').then(r=>r.ok?process.exit(0):process.exit(1)).catch(()=>process.exit(1))\""]
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
volumes:
agentbrowser_data: