-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
111 lines (107 loc) · 3.13 KB
/
docker-compose.yaml
File metadata and controls
111 lines (107 loc) · 3.13 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
111
services:
# Proton - Open Source Streaming Database
# For enterprise Timeplus, replace with: timeplus/timeplusd:latest
proton:
image: d.timeplus.com/timeplus-io/proton:latest
platform: linux/amd64 # Required for ARM Macs (runs via Rosetta)
ports:
- "8123:8123" # HTTP port (batch queries)
- "3218:3218" # Streaming port
- "8463:8463" # Native TCP
volumes:
- proton_data:/var/lib/proton
- ./init-proton.sh:/docker-entrypoint-initdb.d/init-proton.sh:ro
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8123/"]
interval: 10s
timeout: 5s
retries: 5
# Grant privileges to default user after container starts
entrypoint:
- /bin/sh
- -c
- |
/entrypoint.sh &
PROTON_PID=$$!
sleep 10
/docker-entrypoint-initdb.d/init-proton.sh
wait $$PROTON_PID
# PulseBot Agent
pulsebot-agent:
build:
context: .
args:
- SETUPTOOLS_SCM_PRETEND_VERSION=${IMAGE_TAG:-0.0.0}
command: pulsebot run
environment:
- TIMEPLUS_HOST=proton
- TIMEPLUS_USER=pulsebot
- TIMEPLUS_PASSWORD=
- ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
- OPENAI_API_KEY=${OPENAI_API_KEY}
- GEMINI_API_KEY=${GEMINI_API_KEY}
- OLLAMA_HOST=http://host.docker.internal:11434
- TELEGRAM_BOT_TOKEN=${TELEGRAM_BOT_TOKEN}
- API_SERVER_URL=http://pulsebot-api:8000
- WORKSPACE_INTERNAL_KEY=test-workspace-key-12345
- AGENT_HOST=pulsebot-agent
- SEARXNG_BASE_URL=http://searxng:8080
- CLAWHUB_AUTH_TOKEN=${CLAWHUB_AUTH_TOKEN}
volumes:
- ./config.yaml:/app/config.yaml:ro
- ./skills:/app/skills:rw
- ./workspaces:/app/workspaces:rw
- ./pulsebot:/usr/local/lib/python3.12/site-packages/pulsebot:rw
ports:
- "8001:8001"
depends_on:
proton:
condition: service_healthy
restart: unless-stopped
# PulseBot API Server
pulsebot-api:
build:
context: .
args:
- SETUPTOOLS_SCM_PRETEND_VERSION=${IMAGE_TAG:-0.0.0}
command: pulsebot serve --host 0.0.0.0 --port 8000
ports:
- "8000:8000"
environment:
- TIMEPLUS_HOST=proton
- TIMEPLUS_USER=pulsebot
- TIMEPLUS_PASSWORD=
- AGENT_HOST=pulsebot-agent
- WORKSPACE_INTERNAL_KEY=test-workspace-key-12345
volumes:
- ./config.yaml:/app/config.yaml:rw
- ./pulsebot:/usr/local/lib/python3.12/site-packages/pulsebot:ro
depends_on:
proton:
condition: service_healthy
restart: unless-stopped
# SearXNG - Privacy-respecting metasearch engine
searxng:
image: searxng/searxng:latest
container_name: searxng
ports:
- "8080:8080"
volumes:
- ./searxng:/etc/searxng
environment:
- SEARXNG_BASE_URL=http://localhost:8080/
# Only needed if you want to use the JSON API or other features requiring a secret
- SEARXNG_SECRET=searxng-secret-key-12345
cap_drop:
- ALL
cap_add:
- CHOWN
- SETGID
- SETUID
logging:
driver: "json-file"
options:
max-size: "1m"
max-file: "1"
volumes:
proton_data: