-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (44 loc) · 1.78 KB
/
docker-compose.yml
File metadata and controls
46 lines (44 loc) · 1.78 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
services:
# ─────────────────────────────────────────────
# TinyClaw Agent (one-shot query)
# docker compose run --rm tinyclaw-agent -m "Hello"
# ─────────────────────────────────────────────
tinyclaw-agent:
build:
context: .
dockerfile: Dockerfile
container_name: tinyclaw-agent
profiles:
- agent
# Uncomment to access host network; leave commented unless needed.
#extra_hosts:
# - "host.docker.internal:host-gateway"
volumes:
- ./config/config.json:/home/tinyclaw/.tinyclaw/config.json:ro
- tinyclaw-workspace:/home/tinyclaw/.tinyclaw/workspace
entrypoint: ["tinyclaw", "agent"]
stdin_open: true
tty: true
# ─────────────────────────────────────────────
# TinyClaw Gateway (Long-running Bot)
# docker compose up tinyclaw-gateway
# ─────────────────────────────────────────────
tinyclaw-gateway:
build:
context: .
dockerfile: Dockerfile
container_name: tinyclaw-gateway
restart: unless-stopped
profiles:
- gateway
# Uncomment to access host network; leave commented unless needed.
#extra_hosts:
# - "host.docker.internal:host-gateway"
volumes:
# Configuration file
- ./config/config.json:/home/tinyclaw/.tinyclaw/config.json:ro
# Persistent workspace (sessions, memory, logs)
- tinyclaw-workspace:/home/tinyclaw/.tinyclaw/workspace
command: ["gateway"]
volumes:
tinyclaw-workspace: