try to add comfy

This commit is contained in:
Mikan
2026-10-06 08:20:50 +04:00
parent dcf77dff50
commit a3c083dad3
4 changed files with 327 additions and 96 deletions

View File

@@ -41,6 +41,7 @@ services:
gpu-test:
profiles:
- test
build:
context: ./gpu
@@ -66,13 +67,48 @@ services:
volumes:
- ${LLAMA_MODELS_HOST:-./gpu/llama_models}:/models
command:
- --host
- 0.0.0.0
- --port
- "8080"
- --model
- /models/model.gguf
command: >
--host 0.0.0.0
--port 8080
--model /models/${LLAMA_MODEL:-model.gguf}
${LLAMA_EXTRA_ARGS:-}
networks:
- gpu-node
restart: "no"
comfyui:
profiles:
- comfy
build:
context: ./comfyui
image: gpu-node-comfyui:local
container_name: gpu-node-comfyui
init: true
gpus: all
ports:
- "8188:8188"
volumes:
- ${COMFY_BASE_HOST:-./gpu/comfy}/models:/opt/comfyui/models
- ${COMFY_BASE_HOST:-./gpu/comfy}/input:/opt/comfyui/input
- ${COMFY_BASE_HOST:-./gpu/comfy}/output:/opt/comfyui/output
- ${COMFY_BASE_HOST:-./gpu/comfy}/user:/opt/comfyui/user
- ${COMFY_BASE_HOST:-./gpu/comfy}/custom_nodes:/opt/comfyui/custom_nodes
environment:
USE_UV: "true"
WANTED_UID: "1000"
WANTED_GID: "1000"
SECURITY_LEVEL: "normal"
COMFY_CMDLINE_EXTRA: ${COMFY_EXTRA_ARGS:-}
networks:
- gpu-node