summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2026-10-10 12:50:04 +0200
committerFelix Morgner <felix.morgner@gmail.com>2026-10-10 12:50:04 +0200
commitc7aaf81049cdf7cef94d07af149e5cfb3fcd2231 (patch)
treefce6d4e6192406c91b4c4e3db7ca879f197d4145
parent9622cfbae5b5d004a5901c81dd48ec04ee0fdea6 (diff)
downloadlocal-ai-c7aaf81049cdf7cef94d07af149e5cfb3fcd2231.tar.xz
local-ai-c7aaf81049cdf7cef94d07af149e5cfb3fcd2231.zip
docker: update ComfyUI
-rw-r--r--Dockerfile.comfyui35
-rw-r--r--docker-compose.yml30
2 files changed, 54 insertions, 11 deletions
diff --git a/Dockerfile.comfyui b/Dockerfile.comfyui
new file mode 100644
index 0000000..1c0d797
--- /dev/null
+++ b/Dockerfile.comfyui
@@ -0,0 +1,35 @@
+FROM docker.io/ubuntu:resolute
+
+RUN mkdir /app
+
+RUN apt update && \
+ apt full-upgrade --auto-remove --purge --yes && \
+ apt install --no-install-recommends --yes \
+ git \
+ libatomic1 \
+ python3 \
+ python3-venv && \
+ python3 -m venv /app/venv && \
+ rm -rf /var/lib/apt/lists/*
+
+RUN /app/venv/bin/pip3 install --index-url https://download.pytorch.org/whl/rocm7.2 \
+ torch \
+ torchaudio \
+ torchvision
+
+RUN /app/venv/bin/pip install \
+ gguf
+
+WORKDIR /app/ComfyUI
+
+RUN git clone https://github.com/Comfy-Org/ComfyUI.git .
+
+RUN /app/venv/bin/pip install \
+ --pre \
+ --upgrade \
+ -r requirements.txt \
+ comfy-aimdo \
+ comfyui-manager \
+ gguf
+
+ENTRYPOINT ["/app/venv/bin/python3", "main.py"]
diff --git a/docker-compose.yml b/docker-compose.yml
index 8c1fa10..1804901 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -2,11 +2,12 @@ services:
ollama:
image: ollama/ollama:rocm
+ container_name: ollama
restart: always
environment:
- OLLAMA_MAX_QUEUE: 8192
+ OLLAMA_MAX_QUEUE: 512
OLLAMA_MAX_LOADED_MODELS: 1
- OLLAMA_NUM_PARALLEL: 5
+ OLLAMA_NUM_PARALLEL: 1
OLLAMA_KEEP_ALIVE: 0
OLLAMA_FLASH_ATTENTION: 1
OLLAMA_GPU_OVERHEAD: 2147483648
@@ -27,31 +28,38 @@ services:
- /dev/kfd:/dev/kfd
- /dev/dri:/dev/dri
- comfy-ui:
- image: corundex/comfyui-rocm:latest
+ comfyui:
+ image: comfyui
+ build:
+ dockerfile: Dockerfile.comfyui
+ container_name: comfyui
restart: always
- environment:
- CLI_ARGS: --listen 0.0.0.0
+ command: >
+ --listen 0.0.0.0
+ --enable-manager
+ --enable-dynamic-vram
+ --mmap-torch-files
+ --multi-user
volumes:
- type: bind
source: ./comfyui/custom_nodes
- target: /workspace/ComfyUI/custom_nodes
+ target: /app/ComfyUI/custom_nodes
read_only: false
- type: bind
source: ./comfyui/input
- target: /workspace/ComfyUI/input
+ target: /app/ComfyUI/input
read_only: false
- type: bind
source: ./comfyui/models
- target: /workspace/ComfyUI/models
+ target: /app/ComfyUI/models
read_only: false
- type: bind
source: ./comfyui/output/
- target: /workspace/ComfyUI/output/
+ target: /app/ComfyUI/output/
read_only: false
- type: bind
source: ./comfyui/user
- target: /workspace/ComfyUI/user
+ target: /app/ComfyUI/user
read_only: false
ports:
- 8188:8188