-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (65 loc) · 2.08 KB
/
docker-compose.yml
File metadata and controls
67 lines (65 loc) · 2.08 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
66
67
services:
gateway:
build:
context: .
dockerfile: docker/gateway/Dockerfile
container_name: claw-gateway
restart: unless-stopped
ports:
- "127.0.0.1:18789:18789"
environment:
- GATEWAY_TOKEN=${GATEWAY_TOKEN}
- OPENCLAW_GATEWAY_TOKEN=${GATEWAY_TOKEN}
- OPENROUTER_API_KEY=${OPENROUTER_API_KEY}
- OPENROUTER_BASE_URL=${OPENROUTER_BASE_URL:-https://openrouter.ai/api/v1}
- OPENROUTER_MODEL=${OPENROUTER_MODEL:-openrouter/auto}
# Mapped for Anthropic SDK compatibility inside OpenClaw
- ANTHROPIC_API_KEY=${OPENROUTER_API_KEY}
- ANTHROPIC_BASE_URL=${OPENROUTER_BASE_URL:-https://openrouter.ai/api/v1}
- CLAW_DASHBOARD=/data/shared/dashboard.json
- PRODUCT_DIR=/data/product
- SEARXNG_URL=http://searxng:8080
- OPENCLAW_CONFIG_PATH=/data/config/config.json
- OPENCLAW_STATE_DIR=/data/config
- OPENCLAW_PORT=18789
volumes:
- ./data/config:/data/config
- ./data/shared:/data/shared
- ./data/product:/data/product # shared SaaS codebase — all agents read/write
- ./data/workspace-lead:/data/workspace-lead
- ./data/workspace-dev:/data/workspace-dev
- ./data/workspace-designer:/data/workspace-designer
- ./data/workspace-marketer:/data/workspace-marketer
- ./cli/claw:/usr/local/bin/claw:ro
healthcheck:
test: ["CMD", "wget", "-q", "-O-", "http://localhost:18789/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
depends_on:
searxng:
condition: service_healthy
searxng:
image: searxng/searxng:latest
container_name: claw-searxng
restart: unless-stopped
ports:
- "127.0.0.1:8080:8080"
volumes:
- ./data/searxng:/etc/searxng
environment:
- SEARXNG_BASE_URL=http://localhost:8080/
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
healthcheck:
test: ["CMD", "wget", "-q", "-O-", "http://localhost:8080/healthz"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
volumes: {}