-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
729 lines (693 loc) · 31.3 KB
/
Copy pathdocker-compose.yml
File metadata and controls
729 lines (693 loc) · 31.3 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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
services:
# ── Bifrost LLM Gateway ─────────────────────────────────────────
# Go-based OpenAI/Anthropic-compatible gateway (maximhq/bifrost). Lives on
# mybridge; other services reach it at http://bifrost:8080. Provider API keys
# come from secrets/bifrost.env; config.json is rendered from
# config/bifrost.config.json.tmpl to secrets/bifrost.config.json by `just rs`
# (it carries the mcpproxy bearer token, so it can't stay checked in). Provider
# keys inside it are still `env.OPENROUTER_API_KEY` refs resolved from the env
# file. Bifrost re-applies config.json on every boot; edit the .tmpl, `just rs`,
# then `just restart bifrost` (or `just up bifrost` if env vars changed — restart
# does NOT reload env_file). The config_store + logs_store sqlite DBs under
# ./volumes/bifrost persist request logs and Web-UI edits; `just bifrost-reset`
# wipes them for a clean slate.
# Integration endpoints: /openai/v1 (OpenAI-compatible), /anthropic (Claude Code),
# /genai (Gemini). Web UI + request logs at http://127.0.0.1:8090.
bifrost:
image: ankit/bifrost-dynamic:latest
build:
context: /projects/dockers/bifrost-dynamic
container_name: bifrost
hostname: bifrost
restart: unless-stopped
env_file:
- ./secrets/bifrost.env
volumes:
- ./volumes/bifrost:/app/data # runtime config.db + logs.db (gitignored)
- ./secrets/bifrost.config.json:/app/data/config.json:ro # rendered from config/bifrost.config.json.tmpl by `just rs` (holds the mcpproxy bearer token)
ports:
- "127.0.0.1:${BIFROST_PORT:-8090}:8080" # local debug + Web UI; LAN/TLS via Caddy
# ── codex-oauth: ChatGPT/Codex subscription -> OpenAI-compatible /v1 ─────────
# Lets Bifrost ride a ChatGPT Plus/Pro subscription (no API credits) by wrapping
# EvanZhouDev/openai-oauth: it reads a Codex OAuth auth.json, auto-refreshes the
# token, and proxies to chatgpt.com/backend-api/codex. Bifrost registers it as the
# custom `codex` provider (base_url http://codex-oauth:10531; see bifrost.config.json.tmpl).
# On mybridge so Bifrost reaches it at http://codex-oauth:10531.
#
# AUTH IS A ONE-TIME MANUAL STEP — use a DEDICATED login, not the host's ~/.codex,
# so this proxy's rotating refresh token can't invalidate the host Codex CLI:
# CODEX_HOME="$(pwd)/secrets/codex-oauth" codex login --device-auth
# --device-auth prints a code + URL (no localhost:1455 callback), so it works on this
# headless box without port-forwarding. The auth.json is password-equivalent; secrets/ gitignored.
# ToS: personal single-seat use only — internal (no LAN port), no token pooling.
codex-oauth:
image: ankit/codex-oauth-proxy:latest
build:
context: /projects/dockers/codex-oauth-proxy
container_name: codex-oauth
hostname: codex-oauth
restart: unless-stopped
env_file:
- ./config/codex-oauth.env
volumes:
- ./secrets/codex-oauth:/codex # dedicated auth.json (rw: proxy refreshes it); gitignored
ports:
- "127.0.0.1:${CODEX_OAUTH_PORT:-10531}:10531" # local debug only; service-to-service via hostname
logging:
driver: json-file
options:
max-size: 20m
max-file: 5
healthcheck:
test: ["CMD", "nc", "-z", "127.0.0.1", "10531"] # liveness only; avoids hitting chatgpt upstream
interval: 30s
timeout: 5s
retries: 3
start_period: 15s
# ── SillyTavern: LLM chat frontend, pointed at Bifrost ──────────────
# Web UI on 8000. On mybridge so it reaches the gateway at http://bifrost:8080.
# Off-box access is gated by Caddy (private_only); whitelistMode is disabled in
# volumes/sillytavern/config/config.yaml so Caddy can reverse-proxy it. To wire it
# to Bifrost in the UI: API Connections -> Chat Completion -> Custom (OpenAI-compatible),
# Endpoint = http://bifrost:8080/openai/v1, any non-empty API key, then enter a model
# id like openrouter/openai/gpt-oss-20b:free or nvidia/meta/llama-3.1-8b-instruct.
sillytavern:
image: ghcr.io/sillytavern/sillytavern:latest
container_name: sillytavern
hostname: sillytavern
restart: unless-stopped
environment:
# Reverse-proxy posture (config.yaml lives in the gitignored volume, so set it
# declaratively here). Access is gated by Caddy private_only; ST itself is open.
- SILLYTAVERN_LISTEN=true
- SILLYTAVERN_WHITELISTMODE=false
- SILLYTAVERN_SECURITYOVERRIDE=true
volumes:
- ./volumes/sillytavern/config:/home/node/app/config
- ./volumes/sillytavern/data:/home/node/app/data
- ./volumes/sillytavern/plugins:/home/node/app/plugins
- ./volumes/sillytavern/extensions:/home/node/app/public/scripts/extensions/third-party
ports:
- "127.0.0.1:${SILLYTAVERN_PORT:-8001}:8000" # local debug; LAN/TLS via Caddy
# ── SillyTavern image adapter: A1111-shaped API backed by external image services ─
# SillyTavern's OpenAI/OpenRouter image providers are hardcoded to their public
# APIs. This adapter uses the configurable Stable Diffusion WebUI source and
# translates /sdapi/v1/txt2img calls into a configured image backend.
sillytavern-bifrost-image:
build:
context: /projects/dockers/sillytavern-bifrost-image-adapter
image: ankit/sillytavern-bifrost-image:latest
container_name: sillytavern-bifrost-image
restart: unless-stopped
depends_on:
- bifrost
ports:
- "127.0.0.1:7862:7860"
env_file:
- ./secrets/bifrost.env
- ./secrets/sillytavern-image.env
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://127.0.0.1:7860/healthz"]
interval: 15s
timeout: 5s
retries: 5
# ── MCPProxy: shared MCP gateway with upstream OAuth and scoped agent tokens ─
# Host networking is required for OAuth providers that redirect to MCPProxy's
# loopback callback listener. The HTTP API still binds only to mybridge's host
# gateway, making it reachable from Caddy without exposing port 3130 on the LAN.
mcpproxy:
build:
context: /projects/dockers/mcpproxy
dockerfile: Dockerfile
image: ankit/mcpproxy:latest
container_name: mcpproxy
hostname: mcpproxy
restart: unless-stopped
network_mode: host
env_file:
- ./secrets/mcpproxy.env
environment:
- HEADLESS=1
- MCPPROXY_TELEMETRY=false
volumes:
- mcpproxy_data:/data
- ./config/mcpproxy.seed.json:/seed/mcp_config.json:ro
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://172.19.0.1:3130/healthz"]
interval: 15s
timeout: 5s
retries: 5
# ── DNS probe: reproduces post-wake Go resolver behavior in a host-networked container ─
# Mirrors MCPProxy's static Go + Alpine + host-network DNS path. Logs Go resolver
# lookups, direct DNS-server lookups, and Fastmail OAuth metadata GETs as JSONL.
dns-probe:
build:
context: ./tools/dns_probe
image: ankit/dns-probe:latest
container_name: dns-probe
hostname: dns-probe
restart: unless-stopped
network_mode: host
environment:
- DNS_PROBE_INTERVAL=${DNS_PROBE_INTERVAL:-5}
- DNS_PROBE_TIMEOUT=${DNS_PROBE_TIMEOUT:-2}
- DNS_PROBE_NAMES=${DNS_PROBE_NAMES:-api.fastmail.com,api.fastmail.com.,desktop-linux.myth-dab.ts.net,desktop-linux.myth-dab.ts.net.}
- DNS_PROBE_SERVERS=${DNS_PROBE_SERVERS:-resolv-conf,127.0.0.53,100.100.100.100,10.2.2.3}
- DNS_PROBE_HTTP_URLS=${DNS_PROBE_HTTP_URLS:-https://api.fastmail.com/.well-known/oauth-authorization-server}
- DNS_PROBE_LOG=/logs/dns-probe.jsonl
- GODEBUG=${DNS_PROBE_GODEBUG:-netdns=go+1}
volumes:
- ./logs:/logs
# ── Job Search: dedicated tracker container with direct SQLite shutdown ─────
# Own service/image so Docker sends SIGTERM directly to the Bun server. The app
# handles that signal by stopping its worker, checkpointing WAL, and closing
# state/jobsearch.db before the container exits.
job-search:
build:
context: /projects/job-search
dockerfile: Dockerfile
image: ankit/job-search:latest
container_name: job-search
hostname: job-search
user: "1000:1000"
restart: unless-stopped
init: true
stop_grace_period: 90s
env_file:
- /projects/job-search/.env
environment:
- HOST=0.0.0.0
- PORT=9006
- RESUME_RENDER_URL=http://app-runner:3002/api/render
volumes:
- /projects/job-search/state:/app/state
- /projects/job-search/profile:/app/profile
- /projects/job-search/profiles:/app/profiles
- /projects/job-search/applications:/app/applications
- /projects/job-search/runtime:/app/runtime
# Codex CLI auth so extract/fit/answers endpoints work in the container.
- /home/ankit/.codex:/home/ankit/.codex
ports:
- "127.0.0.1:9006:9006"
healthcheck:
test: ["CMD", "bun", "-e", "const r=await fetch('http://127.0.0.1:9006/api/stats'); process.exit(r.ok?0:1)"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
# ── Agent sandbox: devbox-image container that Hermes drives over SSH ──────
agent-devbox:
image: ankit/devbox:latest
container_name: agent-devbox
hostname: agent-devbox
env_file:
- ./secrets/agent-devbox.env # OP_SERVICE_ACCOUNT_TOKEN, rendered from config/
volumes:
- agent_devbox_home:/home/ankit
- /projects:/projects:ro
- /projects/toolbox:/home/ankit/toolbox:ro
- /projects/toolbox:/home/ankit/.agents:ro
- /home/ankit/hroot/allplace:/home/ankit/hroot/allplace:ro
restart: unless-stopped
shm_size: 2g
security_opt:
- seccomp:unconfined
# GPU — remove this block if you don't want the agent on CUDA
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
# ── Agent sandbox #2: SSH workspace for the remote agent ──────────────────
# Same devbox image as agent-devbox, but driven over SSH from another machine
# (port 2222 on the LAN/Tailscale interface; sshd is key-only, AllowUsers ankit).
# Purpose: real filesystem so large agent outputs land in files, not context.
# Writes go to /projects/agent_out (host: /projects/agent_out); the rest of
# /projects is read-only. On mybridge, so it can reach mcpproxy
# (http://172.19.0.1:3130), agent-browser, speaches, etc. by hostname/IP.
# No GPU, no seccomp:unconfined, no OP service-account token — least privilege.
agent-sandbox:
image: ankit/devbox:latest
container_name: agent-sandbox
hostname: agent-sandbox
restart: unless-stopped
volumes:
- agent_sandbox_home:/home/ankit
- /projects:/projects:ro
- /projects/agent_out:/projects/agent_out:rw
ports:
- "2222:22"
shm_size: 2g
# ── Hermes agent: LLM agent loop, SSH-backend execution targets agent-devbox ─
hermes:
image: nousresearch/hermes-agent:main
container_name: hermes
hostname: hermes
command: gateway run
restart: unless-stopped
depends_on:
- agent-devbox
env_file:
- ./secrets/hermes.env # rendered by `just rs`; daemon reads it, no chown needed
environment:
- HERMES_DASHBOARD=1
- HERMES_DASHBOARD_TUI=1 # expose the in-browser Chat tab (needs node + ptyprocess, both in image)
volumes:
- ./volumes/hermes:/opt/data # Hermes-managed state dir; config.yaml lives here (Hermes reads+writes it)
- ./config/hermes.yaml:/config/hermes.yaml:ro # Config template (copied in on first boot)
- agent_devbox_home:/agent_devbox_home
- ../cybernetics:/cybernetics
- ../allplace:/allplace:ro
- ./config/hermes-perms-fix.sh:/etc/cont-init.d/03-hermes-perms-fix:ro # Fix auth.json perms on every boot
- ./config/hermes-config-init.sh:/etc/cont-init.d/02.5-hermes-config-init:ro # Sync config.yaml from template
- ./config/hermes-discord-init.sh:/etc/cont-init.d/04-hermes-discord-init:ro # Populate Discord creds from env
dns:
- 1.1.1.1
- 8.8.8.8
# ── AgentsView: local-first analytics for AI coding-agent sessions ─
# Auto-discovers sessions from the dirs mounted read-only under /agents.
# Reached via Caddy at https://agentsview.dev.ankitson.com (reverse_proxy agentsview:8080).
# --public-url makes agentsview trust that host/origin (DNS-rebinding guard).
agentsview:
image: ankit/agentsview:latest
container_name: agentsview
restart: unless-stopped
command: ["--host", "0.0.0.0", "--no-browser", "--public-url", "https://agentsview.dev.ankitson.com"]
ports:
- "127.0.0.1:${AGENTSVIEW_PORT:-8080}:8080" # local debug only; LAN/TLS via Caddy
environment:
- CLAUDE_PROJECTS_DIR=/agents/claude
- OPENCODE_DIR=/agents/opencode
- CODEX_SESSIONS_DIR=/agents/codex
- GEMINI_DIR=/agents/gemini
- HERMES_SESSIONS_DIR=/agents/hermes
- OPENCLAW_DIR=/agents/openclaw
- PI_DIR=/agents/pi
- AGENTSVIEW_TELEMETRY_ENABLED=0
volumes:
- ./volumes/agentsview:/data # SQLite DB (gitignored)
- ./volumes/agentsview-sources:/agent-sources:ro # Machine-tagged remote transcript mirrors
- ${HOME}/.claude/projects:/agents/claude:ro
- ${HOME}/.local/share/opencode:/agents/opencode:ro
- ${HOME}/.codex/sessions:/agents/codex:ro
- ${HOME}/.gemini:/agents/gemini:ro
- ${HOME}/.pi/agent/sessions:/agents/pi:ro
- ${HOME}/hroot/devserver/volumes/hermes/sessions:/agents/hermes:ro
- ${HOME}/hroot/devserver/volumes/openclaw/agents:/agents/openclaw:ro
# ── Phoenix: OTLP trace viewer for Azimuth workflow and agent runs ─────────
# Canonical Azimuth traces are OTLP JSON files. Phoenix gives us a standard
# OpenTelemetry ingestion endpoint and UI: HTTP OTLP on :6006/v1/traces,
# gRPC OTLP on :4317, and the web UI on :6006. Bound to loopback only; add a
# Caddy route later if it needs a dev.ankitson.com hostname.
phoenix:
image: arizephoenix/phoenix:latest
container_name: phoenix
hostname: phoenix
restart: unless-stopped
environment:
- PHOENIX_WORKING_DIR=/mnt/data
volumes:
- ./volumes/phoenix:/mnt/data
ports:
- "127.0.0.1:${PHOENIX_PORT:-6006}:6006"
- "127.0.0.1:${PHOENIX_GRPC_PORT:-4317}:4317"
# ── MinIO: local S3-compatible object store for downloadable dev files ─────
# API endpoint: http://127.0.0.1:39000 (containers use http://minio:9000).
# Console: http://127.0.0.1:39001. The minio-init job creates the `files`
# bucket and makes it anonymously readable for download-only clients.
minio:
image: quay.io/minio/minio:latest
container_name: minio
hostname: minio
restart: unless-stopped
command: server /data --console-address ":9001"
env_file:
- ./secrets/minio.env
volumes:
- /mnt/store-ext4/minio:/data
ports:
- "127.0.0.1:${MINIO_API_PORT:-39000}:9000"
- "127.0.0.1:${MINIO_CONSOLE_PORT:-39001}:9001"
minio-init:
image: quay.io/minio/mc:latest
container_name: minio-init
depends_on:
- minio
env_file:
- ./secrets/minio.env
entrypoint:
- /bin/sh
- -ceu
- |
until mc alias set dev http://minio:9000 "$${MINIO_ROOT_USER}" "$${MINIO_ROOT_PASSWORD}"; do
sleep 2
done
mc mb --ignore-existing "dev/$${MINIO_BUCKET}"
mc anonymous set download "dev/$${MINIO_BUCKET}"
mc ls "dev/$${MINIO_BUCKET}" >/dev/null
# ── OpenClaw gateway: personal AI assistant, runs in its own devbox-image container ─
# Drives a browser only over CDP (browser.profiles.sidecar -> openclaw-browser:9222),
# so the GUI lives in the sidecar, not here. State restored from ./volumes/openclaw.
openclaw:
build:
# Local custom image; rebuild with --no-cache to pick up npm latest.
context: /projects/dockers/openclaw
dockerfile: Dockerfile
args:
DEVBOX_TAG: "latest" # ankit/devbox:latest (currently aliases 1.5)
image: ankit/openclaw:latest
container_name: openclaw
hostname: openclaw
restart: unless-stopped
depends_on:
- agent-browser
# Container is single-purpose (gateway only, no SSH/Hermes) → expose secrets as primary
# container env so every subprocess (browser-control sidecar, etc.) inherits them, not
# just the gateway shell that the entrypoint sources from the bind-mount.
env_file:
- ./secrets/openclaw.env
environment:
- OPENCLAW_SESSION_CACHE_TTL_MS=0
volumes:
- ./volumes/openclaw:/home/ankit/.openclaw # restored live state (gitignored)
- ./secrets/openclaw.env:/run/openclaw/openclaw.env:ro
# Declarative config patch applied by the entrypoint on every start.
# Rendered by `just rs` so the mcpproxy bearer token stays out of git.
- ./secrets/openclaw.config.patch.json:/run/openclaw/openclaw.config.patch.json:ro
- /projects:/projects:rw
- /projects/toolbox:/home/ankit/toolbox:rw
- /projects/toolbox:/home/ankit/.agents:rw
# Obsidian vaults — match Hermes mount paths so agent prompts can refer to them consistently
- /home/ankit/hroot/allplace:/allplace:ro # read-only reference vault
- /home/ankit/hroot/cybernetics:/cybernetics:rw # read-write working vault
# gilfoyle ops loops: full Docker socket (watch + act on host containers) and the
# infra compose files so `docker compose pull/up` resolves service definitions.
# The socket = host root; gilfoyle's workspace policy gates every write on an
# explicit Discord approval (see /cybernetics/agents/gilfoyle/AGENTS.md).
- /var/run/docker.sock:/var/run/docker.sock
- /home/ankit/hroot/homeserver:/home/ankit/hroot/homeserver:rw
- /home/ankit/hroot/devserver:/home/ankit/hroot/devserver:rw
# Host `docker` group (gid 998) so the `ankit` user inside can reach the socket.
group_add:
- "998"
ports:
- "127.0.0.1:18789:18789" # gateway; LAN/TLS via Caddy
# Web-app preview range. Bound to 0.0.0.0 (no 127.0.0.1: prefix) so LAN/
# Tailscale devices reach http://dev.ankitson.com:<port>. Agents serving
# web apps from inside openclaw should pick a port in 5000-5099 and
# listen on 0.0.0.0:<port>.
- "5000-5099:5000-5099"
shm_size: 2g
security_opt:
- seccomp:unconfined
# ── agent-browser: generic CDP-driven chromium + Xvfb + x11vnc + noVNC GUI ─
# Not openclaw-specific — any agent on `mybridge` can drive it via auth-gated CDP.
# CDP relay on 9222 (internal to mybridge); noVNC web GUI on 6080.
# The OPENCLAW_BROWSER_* env names are the upstream relay's wire contract (kept as-is).
agent-browser:
build:
context: /projects/dockers/agent-browser
dockerfile: Dockerfile
image: ankit/agent-browser:latest
container_name: agent-browser
hostname: agent-browser
restart: unless-stopped
env_file:
- ./secrets/openclaw.env # OPENCLAW_BROWSER_CDP_AUTH_TOKEN, _NOVNC_PASSWORD
environment:
- OPENCLAW_BROWSER_CDP_PORT=9222 # entrypoint's CDP relay reads this from env (no shell default export)
- OPENCLAW_BROWSER_NO_SANDBOX=1
- OPENCLAW_BROWSER_HEADLESS=0
- OPENCLAW_BROWSER_ENABLE_NOVNC=1
ports:
- "127.0.0.1:6080:6080" # noVNC GUI; LAN/TLS via Caddy
volumes:
- agent_browser_home:/tmp/openclaw-home # persist chromium profile
shm_size: 2g
security_opt:
- seccomp:unconfined
# ── OpenClaw app runner: least-privilege web app deployment surface ─
# OpenClaw writes app code + apps.json under Cybernetics; this service runs
# only those apps and exposes a single router for Caddy's dev wildcard.
openclaw-app-runner:
image: ankit/devbox:latest
container_name: openclaw-app-runner
hostname: openclaw-app-runner
user: "1000:1000"
restart: unless-stopped
entrypoint: ["bun", "run", "/runner/runner.ts"]
environment:
- WORKSPACE_DIR=/workspace
- CONFIG_PATH=/workspace/apps.json
- HOST_SUFFIX=.dev.ankitson.com
- ROUTER_PORT=8080
- PORT_START=9101
- PORT_END=9199
- EXTRA_PATH=/home/ankit/.local/bin
volumes:
- ./config/openclaw-app-runner/runner.ts:/runner/runner.ts:ro
- /home/ankit/hroot/cybernetics/agents/openclaw-webapps:/workspace:rw
ports:
- "127.0.0.1:18880:8080" # local debug; LAN/TLS via Caddy dev wildcard
healthcheck:
test: ["CMD", "bun", "-e", "const r=await fetch('http://127.0.0.1:8080/_openclaw/health'); process.exit(r.ok?0:1)"]
interval: 30s
timeout: 5s
retries: 3
# ── Unsloth Studio: patched web UI pointed at Bifrost ─────────────────
# This is a UI/proxy Studio instance only; Bifrost already routes model calls
# to the Windows Unsloth backend. Patched source lives in /projects/code/unsloth.
unsloth-studio:
image: python:3.12-slim
container_name: unsloth-studio
hostname: unsloth-studio
user: "1000:1000"
restart: unless-stopped
depends_on:
- bifrost
entrypoint: ["/bin/bash", "/entrypoint/unsloth-studio-entrypoint.sh"]
env_file:
- ./secrets/unsloth-studio.env
- ./secrets/mcpproxy.env
- ./secrets/unsloth-bifrost.env
environment:
- HOME=/data/home
- UNSLOTH_STUDIO_HOME=/data/home
- UNSLOTH_STUDIO_PORT=8892
- UNSLOTH_BIFROST_BASE_URL=http://bifrost:8080/openai/v1
- UNSLOTH_MCP_PROXY_URL=http://172.19.0.1:3130/mcp/call
- UNSLOTH_MCP_PROXY_DISPLAY_NAME=MCPProxy Search
- UNSLOTH_STUDIO_ALLOW_STDIO_MCP=0
- HF_HOME=/data/cache/huggingface
- XDG_CACHE_HOME=/data/cache
volumes:
- /home/ankit/hroot/projects/code/unsloth:/src:rw
- ./volumes/unsloth-studio:/data:rw
- ./scripts/unsloth-studio-entrypoint.sh:/entrypoint/unsloth-studio-entrypoint.sh:ro
ports:
- "127.0.0.1:${UNSLOTH_STUDIO_PORT:-8892}:8892"
# ── audiocpp: native ggml audio engine (TTS + STT), OpenAI-compatible ───────
# audio.cpp HTTP server exposing /v1/audio/speech (TTS) and /v1/audio/transcriptions
# (STT), plus /v1/models and /v1/audio/voices. Same OpenAI surface as `speaches`, so
# Bifrost registers it as a second `audiocpp` provider (base_provider_type openai).
# Built straight from the repo checkout (/projects/.../audio.cpp) using its own
# .devops/cuda.Dockerfile; the .tmpl server config is rendered to secrets/audiocpp.json
# by `just rs`. Shares the 2070 SUPER with speaches — see WHISPER__TTL note there;
# both engines can be hot at once, so expect VRAM pressure under concurrent load.
# Internal-only (no LAN port) — reached via mybridge as http://audiocpp:8080.
audiocpp:
build:
context: /projects/external-repo/audio.cpp
dockerfile: .devops/cuda.Dockerfile
image: ankit/audiocpp:latest
container_name: audiocpp
hostname: audiocpp
restart: unless-stopped
command: ["server", "--config", "/server.json"]
volumes:
- ./secrets/audiocpp.json:/server.json:ro # rendered from config/audiocpp.json.tmpl by `just rs`
- /mnt/store-ext4/models/audiocpp:/models:rw # model weights (Qwen3-ASR, TTS, etc.)
- /mnt/store-ext4/models/hf-cache:/home/ubuntu/.cache/huggingface
# Silero VAD is a bundled framework asset (not a downloadable package); mount it read-only.
- /projects/external-repo/audio.cpp/assets/framework/models/silero_vad:/models/silero_vad:ro
# Default voice-clone reference for zero-config TTS (OpenAI speech clients only send `input`).
- /projects/external-repo/audio.cpp/assets/resources/sample.wav:/models/voice_ref.wav:ro
ports:
- "127.0.0.1:${AUDIOCPP_PORT:-8801}:8080" # local debug only; service-to-service via hostname
shm_size: 1g
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8080/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
networks:
- mybridge
# ── open-webui: voice-chat web UI chaining STT -> LLM -> TTS via bifrost ───────
# The only mainstream self-hosted chat UI with custom OpenAI-compatible STT
# (/v1/audio/transcriptions) and TTS (/v1/audio/speech) endpoints. All three
# (STT, chat, TTS) point at the single bifrost gateway at one VK. Enable the mic
# + speaker icons per chat to get voice conversation. On mybridge so it reaches
# bifrost at http://bifrost:8080/openai/v1. Exposed on 3000 (LAN/TLS via Caddy).
open-webui:
image: ghcr.io/open-webui/open-webui:main
container_name: open-webui
hostname: open-webui
restart: unless-stopped
env_file:
- ./secrets/openwebui.env # VK, API keys, admin creds, secret key
- ./secrets/mcpproxy.env # MCPPROXY_API_KEY for MCP tool server
volumes:
- ./volumes/open-webui:/app/backend/data # persistent SQLite database + uploads
- ./scripts/open-webui-entrypoint.sh:/app/backend/entrypoint.sh:ro # MCP proxy seed
command: bash /app/backend/entrypoint.sh
environment:
# ── Persistence: force env vars to always win over WebUI database ──
- ENABLE_PERSISTENT_CONFIG=false
# ── MCP tool server (mcpproxy) ──
- MCPPROXY_URL=http://172.19.0.1:3130/mcp
- MCPPROXY_DISPLAY_NAME=MCPProxy Search
# ── HTTP client timeout (safety net for hanging streams) ──
- AIOHTTP_CLIENT_TIMEOUT=300
# ── Admin auto-creation (from env_file: WEBUI_ADMIN_EMAIL, WEBUI_ADMIN_PASSWORD) ──
- WEBUI_ADMIN_NAME=Admin
# ── Networking ──
- WEBUI_URL=https://chat.home.ankitson.com
# ── LLM backend (all providers via bifrost) ──
- OPENAI_API_BASE_URL=http://bifrost:8080/openai/v1
- BYPASS_MODEL_ACCESS_CONTROL=true
- ENABLE_CUSTOM_MODEL_FALLBACK=true
- DEFAULT_PINNED_MODELS=openrouter/anthropic/claude-sonnet-4-20250514,openrouter/openai/gpt-4o,openrouter/google/gemini-2.5-flash,openrouter/meta-llama/llama-4-maverick,unsloth/unsloth/gemma-4-27b-it-bnb-4bit
# ── Speech: STT + TTS via bifrost ──
- AUDIO_STT_ENGINE=openai
- AUDIO_STT_OPENAI_API_BASE_URL=http://bifrost:8080/openai/v1
- AUDIO_STT_MODEL=speaches/deepdml/faster-whisper-large-v3-turbo-ct2
- AUDIO_TTS_ENGINE=openai
- AUDIO_TTS_OPENAI_API_BASE_URL=http://bifrost:8080/openai/v1
- AUDIO_TTS_MODEL=speaches/speaches-ai/Kokoro-82M-v1.0-ONNX
- AUDIO_TTS_VOICE=af_heart
- ENABLE_FORCED_TTS_AUTO_PLAY=true
# ── Embeddings / RAG ──
- RAG_EMBEDDING_ENGINE=openai
- RAG_EMBEDDING_OPENAI_BASE_URL=http://bifrost:8080/openai/v1
- RAG_EMBEDDING_MODEL=ollama/nomic-embed-text
- ENABLE_RAG_LOCAL_WEB_FETCH=true
# ── Web Search (SearXNG) ──
- ENABLE_WEB_SEARCH=true
- WEB_SEARCH_ENGINE=searxng
- SEARXNG_QUERY_URL=http://searxng:8080/search
- WEB_SEARCH_RESULT_COUNT=10
- WEB_SEARCH_CONCURRENT_REQUESTS=2
# ── Image Generation via bifrost (openrouter models) ──
- IMAGE_GENERATION_ENGINE=openai
- IMAGE_GENERATION_OPENAI_API_BASE_URL=http://bifrost:8080/openai/v1
- IMAGE_GENERATION_MODEL=openrouter/black-forest-labs/flux.2-klein-4b
# ComfyUI (native engine, not through bifrost). Uncomment when comfy.win.ankitson.com is up:
# - IMAGE_GENERATION_ENGINE=comfyui
# - COMFYUI_BASE_URL=https://comfy.win.ankitson.com
# ── Code Execution ──
# No sandbox container available; leave disabled or point at local jupyter
# - CODE_EXECUTION_ENGINE=jupyter
# ── Iframe sandbox: allow same-origin ──
- "IFRAME_CSP=default-src 'self' 'unsafe-inline' 'unsafe-eval' data: blob:; connect-src 'self' *; frame-src 'self' *; img-src 'self' data: blob: *; style-src 'self' 'unsafe-inline'"
# ── Features ──
- ENABLE_SIGNUP=true
- ENABLE_BASE_MODELS_CACHE=true
- ENABLE_AUTOCOMPLETE_GENERATION=false
- DEFAULT_USER_ROLE=user
- ENABLE_MEMORIES=true
- ENABLE_MEMORY_SYSTEM_CONTEXT=true
- ENABLE_MEMORY_BACKGROUND_REVIEW=true
- ENABLE_FOLDERS=true
- ENABLE_NOTES=true
- ENABLE_CHANNELS=true
- ENABLE_CALENDAR=true
- ENABLE_AUTOMATIONS=true
# ── HF Hub ──
- HF_HUB_OFFLINE=1
# ── Database connection pool size (default 512 exhausts FD limit for SQLite) ──
- DATABASE_POOL_SIZE=10
networks:
- mybridge
# ── nemotron-asr: NVIDIA Nemotron 3.5 ASR, OpenAI-compatible /v1/audio/transcriptions ─
# audio.cpp has no Nemotron support and no turnkey OpenAI server exists, so this thin
# FastAPI shim wraps NVIDIA NeMo's ASRModel (nvidia/nemotron-3.5-asr-streaming-0.6b,
# 600M multilingual) and serves POST /v1/audio/transcriptions. Bifrost registers it as
# a third `transcription` provider (nemotron-asr). Internal-only; mybridge as :8000.
nemotron-asr:
build:
context: /projects/audio-models
image: ankit/nemotron-asr:latest
container_name: nemotron-asr
hostname: nemotron-asr
restart: unless-stopped
environment:
- MODEL_DIRS=/models/nemotron,/models/parakeet-ctc
volumes:
- /mnt/store-ext4/models/nemotron-onnx:/models/nemotron:ro
- /mnt/store-ext4/models/parakeet-ctc-onnx:/models/parakeet-ctc:ro
ports:
- "127.0.0.1:${NEMOTRON_ASR_PORT:-8802}:8000"
shm_size: 2g
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
healthcheck:
test: ["CMD", "curl", "-f", "http://127.0.0.1:8000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 30s
networks:
- mybridge
# ── Speaches: faster-whisper STT server, OpenAI-compatible /v1/audio/transcriptions ─
# Internal-only (no LAN port) — reached via mybridge from openclaw / hermes / litellm.
# Default WHISPER__MODEL is what `model=""` requests resolve to; clients can override
# per-request. int8 keeps Whisper Turbo at ~1.6 GB on the shared 2070 SUPER.
speaches:
image: ghcr.io/speaches-ai/speaches:latest-cuda
container_name: speaches
hostname: speaches
restart: unless-stopped
environment:
- WHISPER__MODEL=deepdml/faster-whisper-large-v3-turbo-ct2 # community CT2 of Whisper Turbo (Systran hasn't published a Turbo CT2)
- WHISPER__INFERENCE_DEVICE=cuda
- WHISPER__COMPUTE_TYPE=float16 # fp16: full Turbo precision (~1.6 GB VRAM, was int8 ~1.0 GB)
- WHISPER__TTL=300 # unload after 5 min idle to free VRAM for llama-cpp
- HF_HOME=/home/ubuntu/.cache/huggingface
ports:
- "127.0.0.1:8800:8000" # local debug only; service-to-service via hostname
volumes:
- /mnt/store-ext4/models/hf-cache:/home/ubuntu/.cache/huggingface # persist downloaded whisper weights
shm_size: 1g
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
volumes:
mcpproxy_data:
agent_devbox_home:
agent_sandbox_home:
agent_browser_home:
networks:
default:
name: mybridge
external: true
mybridge:
external: true