forked from zeroclaw-labs/zeroclaw
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.fork.yml
More file actions
110 lines (100 loc) Β· 3.69 KB
/
docker-compose.fork.yml
File metadata and controls
110 lines (100 loc) Β· 3.69 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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# ZeroClaw Fork β Docker Compose Stack (Mattermost multi-bot)
#
# Each bot runs as a separate zeroclaw service with its own config file.
# Ollama runs on the HOST (not in Docker) so it can use Apple Silicon GPU (Metal).
#
# Prerequisites:
# brew install ollama && brew services start ollama && ollama pull qwen3:14b
#
# Quick start:
# # Copy and fill in bot tokens for each bot config:
# cp config/sokka.example.toml config/sokka.toml # (sokka.toml is gitignored; fill in bot_token)
# # Fill in bot_token in each config file
# docker compose -f docker-compose.fork.yml up -d
x-zeroclaw-bot: &zeroclaw-bot
build:
context: .
dockerfile: Dockerfile
target: dev
restart: unless-stopped
command: ["daemon"]
environment:
- RUST_LOG=zeroclaw=info
- ZEROCLAW_MODEL=qwen3:8b
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- fork-net
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:42617/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
deploy:
resources:
limits:
cpus: '1'
memory: 512M
reservations:
cpus: '0.1'
memory: 128M
services:
# ββ Sokka (Dev Bot) βββββββββββββββββββββββββββββββββββββββββββββ
sokka:
<<: *zeroclaw-bot
container_name: zeroclaw-sokka
volumes:
- ./config/sokka.toml:/zeroclaw-data/.zeroclaw/config.toml:ro
- ./identities:/zeroclaw-data/identities:ro
- sokka-workspace:/zeroclaw-data/workspace
# ββ Katara (PM Bot) βββββββββββββββββββββββββββββββββββββββββββββ
katara:
<<: *zeroclaw-bot
container_name: zeroclaw-katara
volumes:
- ./config/katara.toml:/zeroclaw-data/.zeroclaw/config.toml:ro
- ./identities:/zeroclaw-data/identities:ro
- katara-workspace:/zeroclaw-data/workspace
# ββ Toph (DevOps Bot) βββββββββββββββββββββββββββββββββββββββββββ
toph:
<<: *zeroclaw-bot
container_name: zeroclaw-toph
volumes:
- ./config/toph.toml:/zeroclaw-data/.zeroclaw/config.toml:ro
- ./identities:/zeroclaw-data/identities:ro
- toph-workspace:/zeroclaw-data/workspace
# ββ Azula (Security Bot) ββββββββββββββββββββββββββββββββββββββββ
azula:
<<: *zeroclaw-bot
container_name: zeroclaw-azula
volumes:
- ./config/azula.toml:/zeroclaw-data/.zeroclaw/config.toml:ro
- ./identities:/zeroclaw-data/identities:ro
- azula-workspace:/zeroclaw-data/workspace
# ββ Iroh (Creative Bot) βββββββββββββββββββββββββββββββββββββββββ
iroh:
<<: *zeroclaw-bot
container_name: zeroclaw-iroh
volumes:
- ./config/iroh.toml:/zeroclaw-data/.zeroclaw/config.toml:ro
- ./identities:/zeroclaw-data/identities:ro
- iroh-workspace:/zeroclaw-data/workspace
# ββ Aang (Coordinator Bot) ββββββββββββββββββββββββββββββββββββββ
aang:
<<: *zeroclaw-bot
container_name: zeroclaw-aang
volumes:
- ./config/aang.toml:/zeroclaw-data/.zeroclaw/config.toml:ro
- ./identities:/zeroclaw-data/identities:ro
- aang-workspace:/zeroclaw-data/workspace
networks:
fork-net:
driver: bridge
volumes:
sokka-workspace:
katara-workspace:
toph-workspace:
azula-workspace:
iroh-workspace:
aang-workspace: