mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-08 16:22:38 +08:00
Update docker
Add path for docker Add Dockerfile for AMD
This commit is contained in:
parent
72597baf93
commit
26ef6d9061
@ -3,7 +3,9 @@ version: "3.9"
|
|||||||
|
|
||||||
x-base_service: &base_service
|
x-base_service: &base_service
|
||||||
image: comfyui:1
|
image: comfyui:1
|
||||||
build: .
|
build:
|
||||||
|
context: docker_files
|
||||||
|
dockerfile: default.Dockerfile
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
- CLI_ARGS=--listen --port 8188
|
- CLI_ARGS=--listen --port 8188
|
||||||
@ -11,10 +13,11 @@ x-base_service: &base_service
|
|||||||
ports:
|
ports:
|
||||||
- "8188:8188"
|
- "8188:8188"
|
||||||
volumes:
|
volumes:
|
||||||
- ./models:/opt/comfy_ui/models
|
- models:/opt/comfy_ui/models
|
||||||
- ./output:/opt/comfy_ui/output
|
- output:/opt/comfy_ui/output
|
||||||
- ./input:/opt/comfy_ui/input
|
- input:/opt/comfy_ui/input
|
||||||
- ./custom_nodes:/opt/comfy_ui/custom_nodes
|
- custom_nodes:/opt/comfy_ui/custom_nodes
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
x-nvidia_docker: &nvidia_docker
|
x-nvidia_docker: &nvidia_docker
|
||||||
deploy:
|
deploy:
|
||||||
@ -26,6 +29,10 @@ x-nvidia_docker: &nvidia_docker
|
|||||||
capabilities: [gpu]
|
capabilities: [gpu]
|
||||||
|
|
||||||
x-base_service_amd: &amd_docker
|
x-base_service_amd: &amd_docker
|
||||||
|
build:
|
||||||
|
context: docker_files
|
||||||
|
dockerfile: amd.Dockerfile
|
||||||
|
|
||||||
group_add:
|
group_add:
|
||||||
- video
|
- video
|
||||||
devices:
|
devices:
|
||||||
@ -58,3 +65,10 @@ services:
|
|||||||
profiles: ["cpu"]
|
profiles: ["cpu"]
|
||||||
environment:
|
environment:
|
||||||
- CLI_ARGS=--listen --port 8188 --cpu
|
- CLI_ARGS=--listen --port 8188 --cpu
|
||||||
|
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
models:
|
||||||
|
output:
|
||||||
|
input:
|
||||||
|
custom_nodes:
|
||||||
17
docker/docker_files/amd.Dockerfile
Normal file
17
docker/docker_files/amd.Dockerfile
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
FROM python:3.10-slim
|
||||||
|
|
||||||
|
|
||||||
|
WORKDIR /opt/comfy_ui
|
||||||
|
|
||||||
|
|
||||||
|
RUN PIP_NO_CACHE_DIR=1 pip install --extra-index-url https://download.pytorch.org/whl/rocm5.4.2 \
|
||||||
|
torch \
|
||||||
|
torchvision \
|
||||||
|
torchaudio
|
||||||
|
|
||||||
|
COPY ../.. /opt/comfy_ui
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
|
||||||
|
ENV CLI_ARGS=""
|
||||||
|
CMD python main.py ${CLI_ARGS}
|
||||||
@ -11,7 +11,7 @@ torchaudio \
|
|||||||
xformers \
|
xformers \
|
||||||
triton
|
triton
|
||||||
|
|
||||||
COPY . /opt/comfy_ui
|
COPY ../.. /opt/comfy_ui
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user