-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (53 loc) · 1.68 KB
/
docker-compose.yml
File metadata and controls
65 lines (53 loc) · 1.68 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
# copilotbrowser MCP Server - Docker Compose
# Usage:
# Build and start: docker compose up --build
# Start (pre-built): docker compose up
# Stop: docker compose down
services:
copilotbrowser:
build:
context: .
dockerfile: Dockerfile
image: copilotbrowser:2.0.0
container_name: copilotbrowser
restart: unless-stopped
ports:
- "${MCP_PORT:-8931}:8931"
environment:
# Browser configuration
- BROWSER_TYPE=${BROWSER_TYPE:-chromium}
- BROWSER_HEADLESS=${BROWSER_HEADLESS:-true}
- BROWSER_CAPS=${BROWSER_CAPS:-}
# Server configuration
- MCP_PORT=8931
- MCP_HOST=0.0.0.0
- SHARED_BROWSER_CONTEXT=${SHARED_BROWSER_CONTEXT:-false}
# Optional output directory (mount a volume to persist)
- OUTPUT_DIR=${OUTPUT_DIR:-}
# Optional allowed hosts for host-header validation
# Set to '*' to allow all (only for trusted networks)
- ALLOWED_HOSTS=${ALLOWED_HOSTS:-}
# Optional: persist browser downloads across container recreations
volumes:
- copilotbrowser-browsers:/ms-copilotbrowser
# Security: drop capabilities not needed for headless browser
cap_drop:
- ALL
cap_add:
- SYS_ADMIN # Required for Chromium sandbox (or use --no-sandbox)
# Shared memory size (Chromium requires sufficient /dev/shm)
shm_size: '256mb'
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:8931/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
logging:
driver: "json-file"
options:
max-size: "10m"
max-file: "3"
volumes:
copilotbrowser-browsers:
driver: local