-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-stack.yml
More file actions
100 lines (93 loc) · 2.5 KB
/
Copy pathdocker-stack.yml
File metadata and controls
100 lines (93 loc) · 2.5 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
version: "3.9"
services:
ollama:
image: ollama/ollama:latest
ports:
- "11434:11434"
volumes:
- ollama_data:/root/.ollama
deploy:
replicas: 1
restart_policy:
condition: any
memcached:
image: memcached:1.6-alpine
command: ["memcached", "-m", "64", "-p", "11211", "-u", "memcache"]
deploy:
replicas: 1
restart_policy:
condition: any
clawbucket-aggregator:
image: mallond/clawbucket:arm-agg-local
command: ["python", "aggregator.py"]
ports:
- "8090:8090"
environment:
- MEMCACHED_HOST=clawbucket_memcached
- MEMCACHED_PORT=11211
deploy:
replicas: 1
restart_policy:
condition: any
clawbucket:
image: mallond/clawbucket:arm-agg-local
ports:
- "8080:8080"
environment:
- SERVICE_NAME=clawbucket
- SWARM_NODE={{.Node.Hostname}}
- TASK_NAME={{.Task.Name}}
- TASK_SLOT={{.Task.Slot}}
- TASK_ID={{.Task.ID}}
- SWARM_SERVICE=clawbucket_clawbucket
- SWARM_SERVICES=clawbucket_clawbucket,clawbucket_clawbucket-b
- MEMCACHED_HOST=clawbucket_memcached
- MEMCACHED_PORT=11211
- PICOCLAW_URL=
- PICOCLAW_ENABLED=0
- OLLAMA_URL=http://ollama:11434/api/generate
- OLLAMA_MODEL=smollm2:135m
- DASHBOARD_BOT_LABEL=${DASHBOARD_BOT_LABEL:-BOT}
- PEER_DASHBOARD_URL=${PEER_DASHBOARD_URL:-}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
replicas: 3
placement:
constraints:
- node.role == manager
update_config:
parallelism: 1
delay: 5s
restart_policy:
condition: any
clawbucket-b:
image: mallond/clawbucket:arm-agg-local
environment:
- SERVICE_NAME=clawbucket-b
- SWARM_NODE={{.Node.Hostname}}
- TASK_NAME={{.Task.Name}}
- TASK_SLOT={{.Task.Slot}}
- TASK_ID={{.Task.ID}}
- SWARM_SERVICE=clawbucket_clawbucket-b
- SWARM_SERVICES=clawbucket_clawbucket,clawbucket_clawbucket-b
- MEMCACHED_HOST=clawbucket_memcached
- MEMCACHED_PORT=11211
- PICOCLAW_URL=
- PICOCLAW_ENABLED=0
- OLLAMA_URL=http://ollama:11434/api/generate
- OLLAMA_MODEL=smollm2:135m
volumes:
- /var/run/docker.sock:/var/run/docker.sock
deploy:
replicas: 3
placement:
constraints:
- node.role == manager
update_config:
parallelism: 1
delay: 5s
restart_policy:
condition: any
volumes:
ollama_data: