-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (101 loc) · 2.4 KB
/
docker-compose.yml
File metadata and controls
105 lines (101 loc) · 2.4 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
services:
postgres:
image: pgvector/pgvector:pg17
container_name: botbot_postgres
restart: unless-stopped
environment:
POSTGRES_USER: agent
POSTGRES_PASSWORD: ${AGENT_DB_PASSWORD:-agent_secret}
POSTGRES_DB: agent_memory
volumes:
- pgdata:/var/lib/postgresql/data
deploy:
resources:
limits:
cpus: "1.0"
memory: 1024M
networks:
- brain_net
ports:
- "5433:5432"
healthcheck:
test: ["CMD-SHELL", "pg_isready -U agent -d agent_memory"]
interval: 10s
timeout: 5s
retries: 5
brain:
image: ghcr.io/stonks-git/botbot-brain:latest
build: ./brain
container_name: botbot_brain
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
environment:
- DATABASE_URL=postgresql://agent:${AGENT_DB_PASSWORD:-agent_secret}@postgres:5432/agent_memory
- GOOGLE_API_KEY=${GOOGLE_API_KEY}
volumes:
- ./brain-state:/app/state:rw
networks:
- brain_net
ports:
- "8400:8400"
deploy:
resources:
limits:
cpus: "2.0"
memory: 2048M
reservations:
cpus: "0.5"
memory: 512M
security_opt:
- no-new-privileges:true
healthcheck:
test: ["CMD", "python3", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8400/health')"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
openclaw:
image: ghcr.io/stonks-git/botbot-openclaw:latest
build: ./openclaw
container_name: botbot_openclaw
restart: unless-stopped
depends_on:
brain:
condition: service_healthy
environment:
- HOME=/home/node
- GEMINI_API_KEY=${GOOGLE_API_KEY}
- OPENCLAW_STATE_DIR=/data
- OPENCLAW_GATEWAY_TOKEN=${OPENCLAW_GATEWAY_TOKEN:-botbot-dev}
volumes:
- ./openclaw-config:/data
- ./openclaw-workspace:/home/node/.openclaw/workspace
networks:
- brain_net
ports:
- "18789:18789"
command:
[
"node",
"openclaw.mjs",
"gateway",
"--allow-unconfigured",
"--bind",
"lan",
"--port",
"18789",
]
deploy:
resources:
limits:
cpus: "2.0"
memory: 2048M
security_opt:
- no-new-privileges:true
networks:
brain_net:
driver: bridge
volumes:
pgdata: