- Backend: SSH execution via spawn() with -T flag for JSON streaming - Backend: PATH setup for non-login shells on remote hosts - Backend: History loading via SSH (tail -n 2000 for large files) - Frontend: Host selector UI with colored buttons in Sidebar - Frontend: Auto-select first project when host changes - Frontend: Pass host parameter to history and session APIs - Docker: Install openssh-client, mount SSH keys Enables running Claude sessions on remote hosts via SSH while viewing them through the web UI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
services:
|
|
backend:
|
|
build:
|
|
context: ./backend
|
|
dockerfile: Dockerfile
|
|
container_name: claude-webui-backend
|
|
restart: unless-stopped
|
|
network_mode: host
|
|
volumes:
|
|
# Claude CLI binary (read-only from host)
|
|
- /home/sumdex/.local/share/claude:/home/node/.local/share/claude:ro
|
|
# Separate config for WebUI Claude (NOT Neko's config!)
|
|
- ./config/.claude:/home/node/.claude:rw
|
|
- ./config/.config/claude:/home/node/.config/claude:rw
|
|
# Hosts configuration
|
|
- ./config/hosts.json:/app/config/hosts.json:ro
|
|
# SSH keys for remote execution
|
|
- /home/sumdex/.ssh/id_rsa:/home/node/.ssh/id_rsa:ro
|
|
- /home/sumdex/.ssh/known_hosts:/home/node/.ssh/known_hosts:ro
|
|
# Project directories for Claude to work in
|
|
- /home/sumdex/projects:/projects:rw
|
|
- /home/sumdex/docker:/docker:rw
|
|
- /opt/stacks:/stacks:rw
|
|
environment:
|
|
- NODE_ENV=production
|
|
- HOST=100.105.142.13
|
|
- PORT=3001
|
|
- PATH=/home/node/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
|
|
|
frontend:
|
|
build:
|
|
context: ./frontend
|
|
dockerfile: Dockerfile
|
|
args:
|
|
- VITE_WS_URL=ws://100.105.142.13:3001
|
|
- VITE_API_URL=http://100.105.142.13:3001
|
|
container_name: claude-webui-frontend
|
|
restart: unless-stopped
|
|
ports:
|
|
- "100.105.142.13:3000:80"
|
|
depends_on:
|
|
- backend
|
|
networks:
|
|
- claude-webui
|
|
|
|
networks:
|
|
claude-webui:
|
|
name: claude-webui
|