forked from boos/BoosAPI
feat: ComfyUI embedded dev setup + proxy auth with downstream keys
- COMFYUI_BASE configurable via env var (default 127.0.0.1:8188) - All /api/comfyui/ routes protected by downstream API Key or admin token - docker/Dockerfile.comfyui + docker-compose.comfyui.yml for dev - npm scripts: comfyui:install, comfyui:start, comfyui:stop - .gitignore / .env.example updated
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# docker-compose.comfyui.yml
|
||||
# 开发环境:在 BoosAPI 旁边运行 ComfyUI
|
||||
# 使用: docker compose -f docker/docker-compose.yml -f docker/docker-compose.comfyui.yml up -d
|
||||
services:
|
||||
comfyui:
|
||||
build:
|
||||
context: ..
|
||||
dockerfile: docker/Dockerfile.comfyui
|
||||
ports:
|
||||
- "127.0.0.1:8188:8188"
|
||||
volumes:
|
||||
- comfyui-data:/workspace
|
||||
- ../boosapi_comfy_nodes.py:/workspace/ComfyUI/custom_nodes/boosapi_comfy_nodes.py
|
||||
environment:
|
||||
- BOOSAPI_BASE=http://host.docker.internal:4000/v1
|
||||
- BOOSAPI_KEY=${BOOSAPI_KEY:-sk-demo-user}
|
||||
restart: unless-stopped
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
volumes:
|
||||
comfyui-data:
|
||||
Reference in New Issue
Block a user