Replaced the generic ROCm PyTorch base image and manual installation script with the yanwk/comfyui-boot:rocm image. This change simplifies the Docker Compose configuration by removing the manual git clone and dependency installation steps, leading to faster and more reliable container startups.
95 lines
2.2 KiB
YAML
95 lines
2.2 KiB
YAML
version: '3.8'
|
|
|
|
services:
|
|
|
|
# --- UI 1: Open WebUI (HP Mini 1) ---
|
|
openwebui:
|
|
image: ghcr.io/open-webui/open-webui:main
|
|
networks:
|
|
- ai_internal
|
|
- proxy
|
|
ports:
|
|
- "3000:8080"
|
|
environment:
|
|
- OLLAMA_BASE_URL=http://ollama:11434
|
|
volumes:
|
|
# BIND MOUNT: Easy to backup config/users
|
|
- /home/phunter/docker-data/openwebui:/app/backend/data
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
|
|
# --- UI 2: AnythingLLM (HP Mini 1) ---
|
|
anythingllm:
|
|
image: mintplexlabs/anythingllm
|
|
networks:
|
|
- ai_internal
|
|
- proxy
|
|
ports:
|
|
- "3001:3001"
|
|
environment:
|
|
- STORAGE_DIR=/app/server/storage
|
|
- LLM_PROVIDER=ollama
|
|
- OLLAMA_BASE_PATH=http://ollama:11434
|
|
- OLLAMA_MODEL_PREF=llama3
|
|
volumes:
|
|
# BIND MOUNT: Easy to backup PDFs/Workspaces
|
|
- /home/phunter/docker-data/anythingllm:/app/server/storage
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
|
|
# --- UI 3: Lobe Chat (HP Mini 1) ---
|
|
lobechat:
|
|
image: lobehub/lobe-chat
|
|
networks:
|
|
- ai_internal
|
|
- proxy
|
|
ports:
|
|
- "3210:3210"
|
|
environment:
|
|
- OLLAMA_PROXY_URL=http://ollama:11434/v1
|
|
deploy:
|
|
placement:
|
|
constraints:
|
|
- node.role == manager
|
|
|
|
# --- IMAGE ENGINE: ComfyUI (AMD Optimized) ---
|
|
comfyui:
|
|
image: yanwk/comfyui-boot:rocm # Command to auto-install ComfyUI on first boot
|
|
networks:
|
|
- ai_internal
|
|
- proxy
|
|
deploy:
|
|
replicas: 1
|
|
placement:
|
|
constraints:
|
|
- node.labels.gpu == true
|
|
|
|
# Hardware Access
|
|
devices:
|
|
- /dev/dri:/dev/dri
|
|
- /dev/kfd:/dev/kfd
|
|
cap_add:
|
|
- IPC_LOCK
|
|
- SYS_PTRACE
|
|
|
|
volumes:
|
|
# --- UPDATED PATH ---
|
|
- /mnt/local-ssd/docker/comfyui:/workspace/ComfyUI
|
|
# System Hardware Maps
|
|
- /sys/class/drm:/sys/class/drm:ro
|
|
- /sys/class/kfd:/sys/class/kfd:ro
|
|
- /sys/devices:/sys/devices:ro
|
|
|
|
environment:
|
|
- HSA_OVERRIDE_GFX_VERSION=10.3.0
|
|
- CLI_ARGS=--listen 0.0.0.0 --port 8188
|
|
|
|
networks:
|
|
ai_internal:
|
|
external: true
|
|
proxy:
|
|
external: true |