-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
134 lines (125 loc) · 3.59 KB
/
docker-compose.yml
File metadata and controls
134 lines (125 loc) · 3.59 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: neurorift
volumes:
ollama_models:
neurorift_sessions:
neurorift_audit:
neurorift_evolution:
gateway_state:
networks:
neurorift_net:
driver: bridge
services:
neurorift-core:
build:
context: .
dockerfile: docker/neurorift/Dockerfile
image: neurorift/bridge:latest
restart: unless-stopped
networks: [neurorift_net]
expose: ["8766"]
volumes:
- neurorift_sessions:/data/neurorift/sessions
- neurorift_audit:/data/neurorift/audit
- neurorift_evolution:/data/neurorift/evolution
environment:
OLLAMA_HOST: "http://host.docker.internal:8080"
BRIDGE_HOST: "0.0.0.0"
BRIDGE_PORT: "8766"
NEURORIFT_HOME: "/data/neurorift"
LOG_LEVEL: "${LOG_LEVEL:-info}"
OPENAI_API_KEY: "${OPENAI_API_KEY:-}"
ANTHROPIC_API_KEY: "${ANTHROPIC_API_KEY:-}"
GOOGLE_API_KEY: "${GOOGLE_API_KEY:-}"
healthcheck:
test: ["CMD", "curl", "-sf", "http://localhost:8766/health"]
interval: 10s
timeout: 5s
retries: 5
start_period: 40s
rust-engine:
build:
context: .
dockerfile: docker/openclaw/Dockerfile
image: neurorift/openclaw:latest
restart: unless-stopped
networks: [neurorift_net]
expose: ["8765"]
environment:
NEURORIFT_HOME: "/data/neurorift"
NEURORIFT_WS_ADDR: "0.0.0.0:8765"
NEURORIFT_BRIDGE_URL: "http://neurorift-core:8766"
RUST_LOG: "${RUST_LOG:-info}"
volumes:
- neurorift_sessions:/data/neurorift/sessions
depends_on:
neurorift-core:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8765/health 2>/dev/null || (echo >/dev/tcp/localhost/8765) 2>/dev/null || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 45s
gateway:
image: neurorift/openclaw:latest
restart: unless-stopped
networks: [neurorift_net]
expose: ["18789"]
volumes:
- gateway_state:/data/openclaw
- neurorift_sessions:/data/neurorift/sessions
environment:
OPENCLAW_CONFIG_PATH: /workspace/NeuroRift/openclaw.json5
OPENCLAW_STATE_DIR: /data/openclaw
OPENCLAW_GATEWAY_ADDR: "0.0.0.0:18789"
NEURORIFT_BRIDGE_URL: "http://neurorift-core:8766"
LLAMA_HOST: "http://host.docker.internal:8080"
depends_on:
neurorift-core:
condition: service_healthy
rust-engine:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "echo >/dev/tcp/localhost/18789"]
interval: 10s
timeout: 5s
retries: 5
start_period: 30s
sandbox-runner:
image: openclaw-sandbox:bookworm-slim
restart: unless-stopped
networks: [neurorift_net]
command: ["sleep", "infinity"]
healthcheck:
test: ["CMD", "sh", "-c", "echo sandbox-ready"]
interval: 30s
timeout: 5s
retries: 3
start_period: 10s
web-ui:
build:
context: .
dockerfile: docker/web-ui/Dockerfile
args:
NEURORIFT_BRIDGE_URL: "http://neurorift-core:8766"
OPENCLAW_WS_URL: "http://gateway:18789"
image: neurorift/web-ui:latest
restart: unless-stopped
networks: [neurorift_net]
ports:
- "${WEB_UI_PORT:-3000}:3000"
environment:
NODE_ENV: production
NEURORIFT_BRIDGE_URL: "http://neurorift-core:8766"
OPENCLAW_WS_URL: "http://gateway:18789"
PORT: "3000"
HOSTNAME: "0.0.0.0"
depends_on:
gateway:
condition: service_healthy
healthcheck:
test: ["CMD", "wget", "-qO-", "http://localhost:3000"]
interval: 15s
timeout: 10s
retries: 5
start_period: 30s