forked from SafeRL-Lab/cheetahclaws
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
61 lines (52 loc) · 2 KB
/
docker-compose.yml
File metadata and controls
61 lines (52 loc) · 2 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
# CheetahClaws — home-server compose stack
#
# Web UI + Telegram bridge in one container, talking to an Ollama instance
# running on the Docker host (typical home-server / DGX-Spark setup).
#
# Quick start:
# 1. cp .env.example .env && edit values
# 2. mkdir -p ./workspace ./data
# 3. docker compose up -d --build
# 4. open http://<host-ip>:8080/chat
#
# See docs/guides/docker.md for the full walkthrough.
services:
cheetahclaws:
build:
context: .
dockerfile: Dockerfile
image: cheetahclaws:latest
container_name: cheetahclaws
restart: unless-stopped
# Inherit host UID/GID so files in ./workspace are owned by the host
# user and stay accessible from Samba shares, native FS, etc.
user: "${UID:-1000}:${GID:-1000}"
ports:
- "${WEB_PORT:-8080}:8080"
volumes:
# Project workspace the agent reads/writes. Share this over SMB on
# the host to access from your other PC / phone.
- ./workspace:/workspace
# Persisted config, sessions, history. Surviving container restarts.
- ./data:/home/cheetah/.cheetahclaws
# Ollama runs on the host. host.docker.internal resolves to the host
# gateway on Linux 20.10+ via host-gateway, no host networking needed.
extra_hosts:
- "host.docker.internal:host-gateway"
environment:
# Cloud provider keys (optional — leave unset if going Ollama-only).
ANTHROPIC_API_KEY: "${ANTHROPIC_API_KEY:-}"
OPENAI_API_KEY: "${OPENAI_API_KEY:-}"
# Telegram bridge: when both are present, the bridge auto-starts in
# the same process as the web server.
# Tokens go into ~/.cheetahclaws/config.json on first run; export
# them here only if you want them re-applied each restart.
# Resource hints (tune to your hardware). DGX-Spark: bump as desired.
# deploy:
# resources:
# limits:
# memory: 4g
# Named volumes alternative (uncomment if you prefer not to bind-mount):
# volumes:
# cheetah-data:
# cheetah-workspace: