-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
62 lines (59 loc) · 1.89 KB
/
Copy pathdocker-compose.yml
File metadata and controls
62 lines (59 loc) · 1.89 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
# SkynetClaw — the whole stack, one command.
#
# docker compose up -d
# docker compose exec ollama ollama pull llama3.1:8b # first run only
# open http://127.0.0.1:8766/api/system/health
#
# Everything runs locally. No account, no cloud, no data leaves the machine
# unless you configure a cloud provider in .env.
services:
ollama:
image: ollama/ollama:latest
container_name: skynetclaw-ollama
ports:
- "11434:11434"
volumes:
# Models are large — keep them in a named volume so they survive rebuilds.
- ollama-models:/root/.ollama
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "ollama list >/dev/null 2>&1 || exit 1"]
interval: 30s
timeout: 10s
retries: 3
start_period: 20s
# Uncomment to use an NVIDIA GPU. CPU works without this — it is just slower.
# deploy:
# resources:
# reservations:
# devices:
# - driver: nvidia
# count: all
# capabilities: [gpu]
skynetclaw:
build: .
container_name: skynetclaw
ports:
- "127.0.0.1:8766:8766"
depends_on:
ollama:
condition: service_started
environment:
OLLAMA_BASE_URL: http://ollama:11434
env_file:
# Optional cloud provider keys. Create it from .env.example; compose
# tolerates it being absent.
- path: .env
required: false
volumes:
# Your config, editable without rebuilding the image.
- ./backend/settings.json:/app/backend/settings.json
# Persist the institutional memory: the database IS the system's memory,
# so losing it means the House forgets everything it has learned.
- skynetclaw-data:/app/backend/data
# Optional: expose an Obsidian vault to the agents (read/write).
# - ${VAULT_PATH:-./vault}:/vault
restart: unless-stopped
volumes:
ollama-models:
skynetclaw-data: