Backend: - gpu_service: detect NVIDIA (nvidia-smi) + AMD/Intel (/dev/dri, sysfs); inject helpers (nvidia deploy.reservations, /dev/dri + groups + LIBVA) - volume_service: list/orphaned/prune volumes; NFS/SMB/named/bind/tmpfs YAML generation (generate-yaml) - device_service: USB/TTY/DRI detection + sandboxed host path browser - compose_edit_service: server-side merge of volume/gpu/device fragments - routers: volumes (+host paths), editor (services/add-volume/set-gpu/ add-device/remove-device/set-privileged), system gpus+devices - compose: bind-mount /dev:ro for detection Frontend: - split-pane StackEditor with helper panel (service picker + tabs) - VolumeWizard (bind/named/nfs/smb/tmpfs) + HostPathBrowser - GPUSelector, DevicePanel; api clients for volumes/editor/system Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
34 lines
983 B
YAML
34 lines
983 B
YAML
services:
|
|
backend:
|
|
image: 10.10.5.10:3020/menzelj/stackpilot-backend:latest
|
|
build: ./backend
|
|
restart: unless-stopped
|
|
environment:
|
|
- SECRET_KEY=${SECRET_KEY}
|
|
- STACKS_DIR=/opt/stacks
|
|
- DATA_DIR=/data
|
|
- HOST_PROC_PATH=/host_proc
|
|
- CORS_ORIGINS=${CORS_ORIGINS:-http://localhost:5009}
|
|
volumes:
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
|
- ./data:/data
|
|
- ${STACKS_HOST_DIR:-./data/stacks}:/opt/stacks
|
|
- /proc:/host_proc:ro
|
|
# Host devices for GPU/device detection + passthrough (USB/TTY/DRI).
|
|
# Read-only; remove if you don't need GPU/device features.
|
|
- /dev:/dev:ro
|
|
expose:
|
|
- "5008"
|
|
# Uncomment to expose the API directly (normally proxied by the frontend):
|
|
# ports:
|
|
# - "5008:5008"
|
|
|
|
frontend:
|
|
image: 10.10.5.10:3020/menzelj/stackpilot-frontend:latest
|
|
build: ./frontend
|
|
restart: unless-stopped
|
|
depends_on:
|
|
- backend
|
|
ports:
|
|
- "5009:80"
|