Repository navigation
Expand file tree
/
Copy pathdocker-compose.screenshots.yml
More file actions
74 lines (70 loc) · 2.82 KB
/
Copy pathdocker-compose.screenshots.yml
File metadata and controls
74 lines (70 loc) · 2.82 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
68
69
70
71
72
73
74
services:
ollama:
image: ollama/ollama:latest
restart: unless-stopped
ports:
- "11434:11434"
volumes:
- screenshot-ollama-data:/root/.ollama
ollama-init:
image: curlimages/curl:8.13.0
entrypoint: ["/bin/sh", "/usr/local/bin/ollama-init.sh"]
environment:
OLLAMA_MODEL: ${OLLAMA_MODEL:-qwen2:0.5b}
depends_on:
- ollama
volumes:
- ./screenshots/scripts/ollama-init.sh:/usr/local/bin/ollama-init.sh:ro
mcp-demo:
build: ./screenshots/mcp-server
expose:
- "8080"
healthcheck:
test: ["CMD", "python", "-c", "import socket; s=socket.create_connection(('127.0.0.1',8080),2); s.close()"]
interval: 5s
timeout: 5s
retries: 10
start_period: 5s
netclawd:
# The published image is `netclaw` (not `netclawd`). Pinned to a release tag
# via NETCLAW_VERSION so screenshots track a known build; capture.sh sources
# NETCLAW_VERSION from src/version.json. Override NETCLAW_IMAGE to use :dev.
image: ${NETCLAW_IMAGE:-ghcr.io/netclaw-dev/netclaw:${NETCLAW_VERSION:-0.22.1}}
ports:
- "${NETCLAW_PORT:-5299}:5199"
depends_on:
ollama-init:
condition: service_completed_successfully
mcp-demo:
condition: service_healthy
environment:
# NOTE (Phase 5): 0.22.1's `local` exposure mode binds loopback and aborts on a
# non-loopback Daemon.Host. The old host-reachability model here (Host=0.0.0.0 +
# published port + host-side `curl`/`netclaw` in capture.sh) crashes under 0.22.1.
# The Phase 5 re-shoot must drive the CLI via `docker exec` (loopback-local) or move
# to reverse-proxy mode + Daemon.TrustedProxies, and re-validate end to end.
NETCLAW_Daemon__Port: "5199"
NETCLAW_Daemon__DisableSelfUpdate: "true"
NETCLAW_Providers__local-ollama__Type: ollama
NETCLAW_Providers__local-ollama__Endpoint: http://ollama:11434
NETCLAW_Models__Main__Provider: local-ollama
NETCLAW_Models__Main__ModelId: ${OLLAMA_MODEL:-qwen2:0.5b}
NETCLAW_Models__Fallback__Provider: local-ollama
NETCLAW_Models__Fallback__ModelId: ${OLLAMA_MODEL:-qwen2:0.5b}
NETCLAW_Models__Compaction__Provider: local-ollama
NETCLAW_Models__Compaction__ModelId: ${OLLAMA_MODEL:-qwen2:0.5b}
NETCLAW_McpServers__demo-utilities__Transport: http
NETCLAW_McpServers__demo-utilities__Url: http://mcp-demo:8080/mcp
NETCLAW_McpServers__demo-utilities__Enabled: "true"
volumes:
# 0.22.1 runs as the non-root `netclaw` user; its home is /home/netclaw, not /root.
- screenshot-netclaw-home:/home/netclaw/.netclaw
healthcheck:
test: ["CMD", "curl", "-sf", "http://127.0.0.1:5199/api/health/ready"]
interval: 5s
timeout: 5s
retries: 30
start_period: 10s
volumes:
screenshot-ollama-data:
screenshot-netclaw-home: