-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
56 lines (52 loc) · 1.77 KB
/
compose.yaml
File metadata and controls
56 lines (52 loc) · 1.77 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
# Local stack for openclaw-mcp-demo.
#
# postgres — backs the federated `crm_accounts` dataset.
# stub-llm — OpenAI-compatible stub serving as Acme's "private" LLM
# (always returns a canned reply).
# claw-platform — second Spice instance hosting `deploys` and `runbooks`
# as the proxied MCP target. Main Spice authenticates to
# it via `mcp_headers` on the `claw_platform` tool.
#
# Main Spice runs on the host (`spice run` in the project root) and reaches
# each of these on localhost-mapped ports (5432, 8081, 8092).
services:
postgres:
image: postgres:16
container_name: openclaw-postgres
environment:
POSTGRES_DB: crm
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- "5432:5432"
volumes:
- ./local/postgres/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
- postgres-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres -d crm"]
interval: 5s
timeout: 3s
retries: 10
stub-llm:
build: ./local/stub-llm
container_name: openclaw-stub-llm
ports:
- "8081:8081"
healthcheck:
test: ["CMD-SHELL", "python -c \"import urllib.request;urllib.request.urlopen('http://localhost:8081/healthz')\""]
interval: 5s
timeout: 3s
retries: 10
claw-platform:
image: spiceai/spiceai:2.0.0-rc.4
container_name: openclaw-claw-platform
command: ["--http", "0.0.0.0:8090", "--flight", "0.0.0.0:50051", "/app"]
working_dir: /app
volumes:
- ./local/claw-platform:/app:ro
ports:
- "8092:8090"
# No healthcheck — the upstream image is distroless and has no shell
# or curl/wget for healthcheck commands.
volumes:
postgres-data: